From 89d1486382a35f323ad6b854008dd4dee3778d21 Mon Sep 17 00:00:00 2001 From: MrLetsplay Date: Tue, 3 Oct 2023 21:43:12 +0200 Subject: [PATCH] Replace password fields (WIP) --- app/src/main/res/layout/activity_unlock.xml | 29 ++++++--- .../main/res/layout/dialog_input_password.xml | 36 +++++----- .../main/res/layout/dialog_set_password.xml | 65 ++++++++++--------- 3 files changed, 72 insertions(+), 58 deletions(-) diff --git a/app/src/main/res/layout/activity_unlock.xml b/app/src/main/res/layout/activity_unlock.xml index 469ea75..80f3902 100644 --- a/app/src/main/res/layout/activity_unlock.xml +++ b/app/src/main/res/layout/activity_unlock.xml @@ -22,20 +22,29 @@ android:layout_width="0dp" android:layout_height="19dp" android:text="@string/password" - app:layout_constraintBottom_toTopOf="@+id/unlock_password" + app:layout_constraintBottom_toTopOf="@+id/unlock_password_layout" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" /> - - + app:layout_constraintTop_toTopOf="parent" + app:passwordToggleEnabled="true"> + + + + + app:layout_constraintTop_toBottomOf="@+id/unlock_password_layout" /> - + android:padding="16dp" + android:orientation="vertical"> + android:text="@string/enter_password" /> - + app:passwordToggleEnabled="true"> - \ No newline at end of file + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/dialog_set_password.xml b/app/src/main/res/layout/dialog_set_password.xml index 6fdd3dc..13f14b5 100644 --- a/app/src/main/res/layout/dialog_set_password.xml +++ b/app/src/main/res/layout/dialog_set_password.xml @@ -1,50 +1,53 @@ - + android:padding="16dp" + android:orientation="vertical"> + android:text="@string/set_password" /> - + app:passwordToggleEnabled="true" > + + + + + android:layout_marginTop="10dp" /> - + app:passwordToggleEnabled="true" > - \ No newline at end of file + + + + + \ No newline at end of file