diff options
| author | Tyler Nijmeh <tylernij@gmail.com> | 2021-03-30 19:43:10 -0700 |
|---|---|---|
| committer | Tyler Nijmeh <tylernij@gmail.com> | 2021-03-30 19:43:10 -0700 |
| commit | 3636c8c51cc9221db8ef4ade6c4231b68bd553ba (patch) | |
| tree | f0fc5675e508a13bcae5414b7ce70311449a8dd4 /app/src/main/res/layout | |
| parent | 00acb7483a1c207670062d15991a82266b91735c (diff) | |
Add permission validation
Signed-off-by: Tyler Nijmeh <tylernij@gmail.com>
Diffstat (limited to 'app/src/main/res/layout')
| -rw-r--r-- | app/src/main/res/layout/activity_main.xml | 18 | ||||
| -rw-r--r-- | app/src/main/res/layout/activity_permission.xml | 50 |
2 files changed, 53 insertions, 15 deletions
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 4fc2444..24f3d6b 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -1,18 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:app="http://schemas.android.com/apk/res-auto" - xmlns:tools="http://schemas.android.com/tools" +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" - android:layout_height="match_parent" - tools:context=".MainActivity"> + android:layout_height="match_parent"> - <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:text="Hello World!" - app:layout_constraintBottom_toBottomOf="parent" - app:layout_constraintLeft_toLeftOf="parent" - app:layout_constraintRight_toRightOf="parent" - app:layout_constraintTop_toTopOf="parent" /> - -</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file +</RelativeLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/activity_permission.xml b/app/src/main/res/layout/activity_permission.xml new file mode 100644 index 0000000..48d4702 --- /dev/null +++ b/app/src/main/res/layout/activity_permission.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent"> + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_margin="24dp" + android:orientation="vertical"> + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + style="@style/TextAppearance.MaterialComponents.Headline2" + android:text="@string/permission_title" /> + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="32dp" + style="@style/TextAppearance.MaterialComponents.Headline5" + android:text="@string/permission_message" /> + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="32dp" + android:id="@+id/command" + android:fontFamily="monospace" + android:text="@string/permission_command" /> + </LinearLayout> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_margin="24dp" + android:orientation="vertical" + android:gravity="center" + android:layout_alignParentBottom="true"> + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginVertical="12dp" + style="@style/TextAppearance.MaterialComponents.Caption" + android:text="@string/please_wait" /> + <ProgressBar + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:indeterminate="true" + android:layout_marginHorizontal="64dp" + style="@style/Widget.AppCompat.ProgressBar.Horizontal" /> + </LinearLayout> +</RelativeLayout>
\ No newline at end of file |
