Make the password configuration dialog scrollable

Fixes #722
This commit is contained in:
Alexander Bakker 2021-04-14 17:33:16 +02:00
parent 61ac83b134
commit 7d3666a5d0

View file

@ -1,76 +1,81 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <ScrollView
android:orientation="vertical" xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent">
android:paddingStart="20dp" <LinearLayout
android:paddingBottom="10dp" android:orientation="vertical"
android:paddingEnd="20dp"
android:paddingTop="10dp">
<TextView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="@string/authentication_method_password_explanation" android:paddingStart="20dp"
android:textColor="#FF0000" android:paddingBottom="10dp"
android:textStyle="bold" android:paddingEnd="20dp"
android:layout_marginStart="5dp" android:paddingTop="10dp">
android:layout_marginEnd="5dp" <TextView
android:layout_marginBottom="10dp" /> android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/authentication_method_password_explanation"
android:textColor="#FF0000"
android:textStyle="bold"
android:layout_marginStart="5dp"
android:layout_marginEnd="5dp"
android:layout_marginBottom="10dp" />
<com.google.android.material.textfield.TextInputLayout <com.google.android.material.textfield.TextInputLayout
android:id="@+id/text_password_wrapper" android:id="@+id/text_password_wrapper"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/text_password"
android:hint="@string/password"
android:inputType="textPassword"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content"> android:layout_height="wrap_content">
<requestFocus/>
</com.google.android.material.textfield.TextInputEditText>
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputLayout <com.google.android.material.textfield.TextInputEditText
android:id="@+id/text_password_confirm_wrapper" android:id="@+id/text_password"
android:layout_width="match_parent" android:hint="@string/password"
android:layout_height="wrap_content" android:inputType="textPassword"
android:layout_marginTop="10dp"> android:layout_width="match_parent"
android:layout_height="wrap_content">
<requestFocus/>
</com.google.android.material.textfield.TextInputEditText>
</com.google.android.material.textfield.TextInputLayout>
<com.google.android.material.textfield.TextInputEditText <com.google.android.material.textfield.TextInputLayout
android:hint="@string/confirm_password" android:id="@+id/text_password_confirm_wrapper"
android:id="@+id/text_password_confirm"
android:inputType="textPassword"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" /> android:layout_height="wrap_content"
</com.google.android.material.textfield.TextInputLayout> android:layout_marginTop="10dp">
<ProgressBar <com.google.android.material.textfield.TextInputEditText
android:id="@+id/progressBar" android:hint="@string/confirm_password"
style="?android:attr/progressBarStyleHorizontal" android:id="@+id/text_password_confirm"
android:layout_width="match_parent" android:inputType="textPassword"
android:layout_height="wrap_content" android:layout_width="match_parent"
android:layout_marginTop="10dp" android:layout_height="wrap_content" />
android:max="4" </com.google.android.material.textfield.TextInputLayout>
android:paddingStart="4dp"
android:paddingEnd="3.5dp" />
<TextView
android:id="@+id/text_password_strength"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end" />
<CheckBox <ProgressBar
android:id="@+id/check_toggle_visibility" android:id="@+id/progressBar"
android:layout_width="match_parent" style="?android:attr/progressBarStyleHorizontal"
android:layout_height="wrap_content" android:layout_width="match_parent"
android:layout_marginTop="5dp" android:layout_height="wrap_content"
android:text="@string/show_password" /> android:layout_marginTop="10dp"
android:max="4"
android:paddingStart="4dp"
android:paddingEnd="3.5dp" />
<TextView
android:id="@+id/text_password_strength"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end" />
<TextView <CheckBox
android:id="@+id/text_password_hint" android:id="@+id/check_toggle_visibility"
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="end" /> android:layout_marginTop="5dp"
</LinearLayout> android:text="@string/show_password" />
<TextView
android:id="@+id/text_password_hint"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end" />
</LinearLayout>
</ScrollView>