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    <LinearLayout
 6        android:layout_width="match_parent"
 7        android:layout_height="match_parent"
 8        android:orientation="vertical"
 9        android:padding="?dialogPreferredPadding">
10
11        <TextView
12            android:id="@+id/explain"
13            android:layout_width="wrap_content"
14            android:layout_height="wrap_content"
15            android:text="@string/enter_password_to_restore"
16            android:textAppearance="?textAppearanceBodyMedium" />
17
18        <TextView
19            android:layout_width="wrap_content"
20            android:layout_height="wrap_content"
21            android:layout_marginTop="18sp"
22            android:text="@string/restore_warning"
23            android:textAppearance="?textAppearanceBodyMedium" />
24
25        <TextView
26            android:layout_width="wrap_content"
27            android:layout_height="wrap_content"
28            android:layout_marginTop="18sp"
29            android:text="@string/restore_warning_continued"
30            android:textAppearance="?textAppearanceBodyMedium" />
31
32        <com.google.android.material.textfield.TextInputLayout
33            android:id="@+id/account_password_layout"
34            android:layout_width="match_parent"
35            android:layout_height="wrap_content"
36            android:layout_marginTop="8dp"
37            app:endIconMode="password_toggle">
38
39            <eu.siacs.conversations.ui.widget.TextInputEditText
40                android:id="@+id/account_password"
41                android:layout_width="match_parent"
42                android:layout_height="wrap_content"
43                android:hint="@string/password"
44                android:inputType="textPassword" />
45
46        </com.google.android.material.textfield.TextInputLayout>
47    </LinearLayout>
48</layout>