<?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_marginTop="?TextSizeBody1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/restore_warning"
            android:textAppearance="@style/TextAppearance.Conversations.Body1"/>

        <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:passwordToggleDrawable="@drawable/visibility_toggle_drawable"
            app:passwordToggleEnabled="true"
            app:passwordToggleTint="?android:textColorSecondary"
            app:hintTextAppearance="@style/TextAppearance.Conversations.Design.Hint"
            app:errorTextAppearance="@style/TextAppearance.Conversations.Design.Error">

        <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"
            android:textColor="?attr/edit_text_color"
            style="@style/Widget.Conversations.EditText"/>

        </com.google.android.material.textfield.TextInputLayout>
    </LinearLayout>
</layout>