Add checkbox to toggle visibility in password fields

Make string translatable
This commit is contained in:
Michael Schättgen 2019-10-14 22:51:20 +02:00
parent b920fe4b8c
commit 9f248e0802
5 changed files with 56 additions and 5 deletions

View file

@ -4,8 +4,9 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingStart="20dp"
android:paddingBottom="10dp"
android:paddingEnd="20dp"
android:paddingTop="20dp">
android:paddingTop="10dp">
<EditText
android:id="@+id/text_password"
android:hint="@string/password"
@ -18,4 +19,11 @@
android:inputType="textPassword"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<CheckBox
android:id="@+id/check_toggle_visibility"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:text="@string/show_password" />
</LinearLayout>

View file

@ -59,6 +59,13 @@
android:layout_alignParentStart="true"
android:layout_alignParentEnd="true"/>
<CheckBox
android:id="@+id/check_toggle_visibility"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:text="@string/show_password" />
</LinearLayout>
<LinearLayout