make restore backup dialog scrollable

fixes #267
This commit is contained in:
Daniel Gultsch 2024-04-22 13:02:34 +02:00
parent 3892015310
commit 19e7c7ff19
No known key found for this signature in database
GPG key ID: F43D18AD2A0982C2

View file

@ -2,47 +2,52 @@
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<LinearLayout
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="?dialogPreferredPadding">
android:layout_height="match_parent">
<TextView
android:id="@+id/explain"
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/enter_password_to_restore"
android:textAppearance="?textAppearanceBodyMedium" />
android:orientation="vertical"
android:padding="?dialogPreferredPadding">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="18sp"
android:text="@string/restore_warning"
android:textAppearance="?textAppearanceBodyMedium" />
<TextView
android:id="@+id/explain"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/enter_password_to_restore"
android:textAppearance="?textAppearanceBodyMedium" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="18sp"
android:text="@string/restore_warning_continued"
android:textAppearance="?textAppearanceBodyMedium" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="18sp"
android:text="@string/restore_warning"
android:textAppearance="?textAppearanceBodyMedium" />
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/account_password_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
app:endIconMode="password_toggle">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="18sp"
android:text="@string/restore_warning_continued"
android:textAppearance="?textAppearanceBodyMedium" />
<eu.siacs.conversations.ui.widget.TextInputEditText
android:id="@+id/account_password"
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/account_password_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/password"
android:inputType="textPassword" />
android:layout_marginTop="8dp"
app:endIconMode="password_toggle">
</com.google.android.material.textfield.TextInputLayout>
</LinearLayout>
<eu.siacs.conversations.ui.widget.TextInputEditText
android:id="@+id/account_password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/password"
android:inputType="textPassword" />
</com.google.android.material.textfield.TextInputLayout>
</LinearLayout>
</ScrollView>
</layout>