dialog_enter_password.xml

 1<?xml version="1.0" encoding="utf-8"?>
 2<layout xmlns:android="http://schemas.android.com/apk/res/android"
 3    xmlns:app="http://schemas.android.com/apk/res-auto">
 4
 5    <ScrollView
 6        android:layout_width="match_parent"
 7        android:layout_height="match_parent">
 8
 9        <LinearLayout
10            android:layout_width="wrap_content"
11            android:layout_height="wrap_content"
12            android:orientation="vertical"
13            android:padding="?dialogPreferredPadding">
14            
15            <TextView
16                android:id="@+id/explain"
17                android:layout_width="wrap_content"
18                android:layout_height="wrap_content"
19                android:text="@string/enter_password_to_restore"
20                android:textAppearance="?textAppearanceBodyMedium" />
21
22            <com.google.android.material.card.MaterialCardView
23                android:layout_marginTop="16sp"
24                style="?attr/materialCardViewFilledStyle"
25                android:layout_width="match_parent"
26                android:layout_height="wrap_content">
27
28                <LinearLayout
29                    android:layout_width="wrap_content"
30                    android:layout_height="wrap_content"
31                    android:orientation="vertical"
32                    android:padding="16dp">
33                    <com.google.android.material.materialswitch.MaterialSwitch
34                        android:id="@+id/include_keys"
35                        android:checked="true"
36
37                        android:layout_width="wrap_content"
38                        android:layout_height="wrap_content"
39                        android:text="@string/restore_omemo_key"/>
40
41                    <TextView
42                        android:layout_width="wrap_content"
43                        android:layout_height="wrap_content"
44                        android:text="@string/restore_warning"
45                        android:textAppearance="?textAppearanceBodyMedium" />
46                </LinearLayout>
47
48            </com.google.android.material.card.MaterialCardView>
49
50
51            <com.google.android.material.textfield.TextInputLayout
52                android:id="@+id/account_password_layout"
53                android:layout_width="match_parent"
54                android:layout_height="wrap_content"
55                android:layout_marginTop="16sp"
56                app:endIconMode="password_toggle">
57
58                <eu.siacs.conversations.ui.widget.TextInputEditText
59                    android:id="@+id/account_password"
60                    android:layout_width="match_parent"
61                    android:layout_height="wrap_content"
62                    android:hint="@string/password"
63                    android:inputType="textPassword" />
64
65            </com.google.android.material.textfield.TextInputLayout>
66            <TextView
67                android:layout_width="wrap_content"
68                android:layout_height="wrap_content"
69                android:layout_marginTop="16sp"
70                android:text="@string/restore_warning_continued"
71                android:textAppearance="?textAppearanceBodySmall" />
72        </LinearLayout>
73    </ScrollView>
74</layout>