aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/res/layout/dialog_enter_password.xml
blob: 935ebad6c8186b69a950b7d4a1fc16a548dee51f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"
        android:padding="?dialogPreferredPadding">

        <TextView
            android:id="@+id/explain"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/enter_password_to_restore"
            android:textAppearance="@style/TextAppearance.Conversations.Body2" />

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="?TextSizeBody1"
            android:text="@string/restore_warning"
            android:textAppearance="@style/TextAppearance.Conversations.Body1" />

        <android.support.design.widget.TextInputLayout
            android:id="@+id/account_password_layout"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="8dp"
            app:errorTextAppearance="@style/TextAppearance.Conversations.Design.Error"
            app:hintTextAppearance="@style/TextAppearance.Conversations.Design.Hint"
            app:passwordToggleDrawable="@drawable/visibility_toggle_drawable"
            app:passwordToggleEnabled="true"
            app:passwordToggleTint="?android:textColorSecondary">

            <de.pixart.messenger.ui.widget.TextInputEditText
                android:id="@+id/account_password"
                style="@style/Widget.Conversations.EditText"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:hint="@string/password"
                android:inputType="textPassword"
                android:textColor="?attr/edit_text_color" />

        </android.support.design.widget.TextInputLayout>
    </LinearLayout>
</layout>