1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright 2019 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16--> 17 18<androidx.constraintlayout.widget.ConstraintLayout 19 xmlns:android="http://schemas.android.com/apk/res/android" 20 xmlns:app="http://schemas.android.com/apk/res-auto" 21 android:layout_width="match_parent" 22 android:layout_height="match_parent"> 23 24 <com.android.pump.widget.UriImageView 25 android:id="@+id/fragment_permission_image" 26 android:layout_width="222dp" 27 android:layout_height="222dp" 28 app:layout_constraintStart_toStartOf="parent" 29 app:layout_constraintEnd_toEndOf="parent" 30 app:layout_constraintTop_toTopOf="parent" 31 app:layout_constraintBottom_toTopOf="@id/fragment_permission_text1" 32 app:layout_constraintVertical_chainStyle="packed" 33 app:srcCompat="@drawable/ic_placeholder"/> 34 35 <androidx.appcompat.widget.AppCompatTextView 36 android:id="@+id/fragment_permission_text1" 37 android:layout_width="0dp" 38 android:layout_height="wrap_content" 39 android:layout_marginTop="24dp" 40 android:layout_marginStart="24dp" 41 android:layout_marginEnd="24dp" 42 android:gravity="center_horizontal" 43 android:textSize="24sp" 44 app:layout_constraintStart_toStartOf="parent" 45 app:layout_constraintEnd_toEndOf="parent" 46 app:layout_constraintTop_toBottomOf="@id/fragment_permission_image" 47 app:layout_constraintBottom_toTopOf="@id/fragment_permission_text2" 48 android:text="Start the show"/> 49 50 <androidx.appcompat.widget.AppCompatTextView 51 android:id="@+id/fragment_permission_text2" 52 android:layout_width="0dp" 53 android:layout_height="wrap_content" 54 android:layout_marginTop="24dp" 55 android:layout_marginStart="24dp" 56 android:layout_marginEnd="24dp" 57 android:gravity="center_horizontal" 58 app:layout_constraintStart_toStartOf="parent" 59 app:layout_constraintEnd_toEndOf="parent" 60 app:layout_constraintTop_toBottomOf="@id/fragment_permission_text1" 61 app:layout_constraintBottom_toTopOf="@id/fragment_permission_button" 62 android:text= 63 "To play your videos and audios, allow access to the media files on your device."/> 64 65 <com.google.android.material.button.MaterialButton 66 android:id="@+id/fragment_permission_button" 67 android:layout_width="wrap_content" 68 android:layout_height="wrap_content" 69 android:layout_marginTop="24dp" 70 app:layout_constraintStart_toStartOf="parent" 71 app:layout_constraintEnd_toEndOf="parent" 72 app:layout_constraintTop_toBottomOf="@id/fragment_permission_text2" 73 app:layout_constraintBottom_toBottomOf="parent" 74 android:text="Allow Access"/> 75 76</androidx.constraintlayout.widget.ConstraintLayout> 77