<?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">

    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <LinearLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            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="?textAppearanceBodyMedium" />

            <com.google.android.material.card.MaterialCardView
                android:layout_marginTop="16sp"
                style="?attr/materialCardViewFilledStyle"
                android:layout_width="match_parent"
                android:layout_height="wrap_content">

                <LinearLayout
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:orientation="vertical"
                    android:padding="16dp">
                    <com.google.android.material.materialswitch.MaterialSwitch
                        android:id="@+id/include_keys"
                        android:checked="true"

                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="@string/restore_omemo_key"/>

                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="@string/restore_warning"
                        android:textAppearance="?textAppearanceBodyMedium" />
                </LinearLayout>

            </com.google.android.material.card.MaterialCardView>


            <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="16sp"
                app:endIconMode="password_toggle">

                <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" />

            </com.google.android.material.textfield.TextInputLayout>
            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="16sp"
                android:text="@string/restore_warning_continued"
                android:textAppearance="?textAppearanceBodySmall" />
        </LinearLayout>
    </ScrollView>
</layout>