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