diff options
author | Alex Ning <chineseperson5@gmail.com> | 2021-09-03 06:52:59 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2021-09-03 06:52:59 +0000 |
commit | 39b5beb5c5face6ea7d40e4473ec1df650335833 (patch) | |
tree | ba6b41f2477ae90b47b15f15f638e6debd3f2bac /app/src/main/res/layout | |
parent | c0c89fb16abc1f7ce2ef27893be7b5399dc96ecd (diff) | |
download | infinity-for-reddit-39b5beb5c5face6ea7d40e4473ec1df650335833.tar infinity-for-reddit-39b5beb5c5face6ea7d40e4473ec1df650335833.tar.gz infinity-for-reddit-39b5beb5c5face6ea7d40e4473ec1df650335833.tar.bz2 infinity-for-reddit-39b5beb5c5face6ea7d40e4473ec1df650335833.tar.lz infinity-for-reddit-39b5beb5c5face6ea7d40e4473ec1df650335833.tar.xz infinity-for-reddit-39b5beb5c5face6ea7d40e4473ec1df650335833.tar.zst infinity-for-reddit-39b5beb5c5face6ea7d40e4473ec1df650335833.zip |
Start implementing app lock feature.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/activity_lock_screen.xml | 39 | ||||
-rw-r--r-- | app/src/main/res/layout/activity_look_screen.xml | 9 |
2 files changed, 39 insertions, 9 deletions
diff --git a/app/src/main/res/layout/activity_lock_screen.xml b/app/src/main/res/layout/activity_lock_screen.xml new file mode 100644 index 00000000..ef8ba1fb --- /dev/null +++ b/app/src/main/res/layout/activity_lock_screen.xml @@ -0,0 +1,39 @@ +<?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" + android:layout_width="match_parent" + android:layout_height="match_parent" + tools:context=".activities.LockScreenActivity"> + + <com.airbnb.lottie.LottieAnimationView + android:id="@+id/lottie_animation_view" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="center_horizontal" + app:layout_constraintTop_toTopOf="parent" + app:lottie_autoPlay="true" + app:lottie_loop="true" + app:lottie_rawRes="@raw/lock_screen" /> + + <TextView + android:id="@+id/text_view_lock_screen_activity" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="Whoa there!!!" + android:textSize="?attr/font_20" + android:fontFamily="?attr/font_family" + app:layout_constraintTop_toBottomOf="@id/lottie_animation_view" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintEnd_toEndOf="parent" /> + + <com.google.android.material.button.MaterialButton + android:id="@+id/unlock_button_lock_screen_activity" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="Unlock" + app:layout_constraintTop_toBottomOf="@id/text_view_lock_screen_activity" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintEnd_toEndOf="parent" /> + +</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/activity_look_screen.xml b/app/src/main/res/layout/activity_look_screen.xml deleted file mode 100644 index ff5c4fc4..00000000 --- a/app/src/main/res/layout/activity_look_screen.xml +++ /dev/null @@ -1,9 +0,0 @@ -<?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" - android:layout_width="match_parent" - android:layout_height="match_parent" - tools:context=".activities.LockScreenActivity"> - -</androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file |