<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/keys_backup_root"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <androidx.constraintlayout.widget.ConstraintLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <ImageView
            android:id="@+id/keys_backup_shield"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="36dp"
            android:src="@drawable/key_big"
            android:tint="?riotx_text_primary"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent" />

        <TextView
            android:id="@+id/keys_backup_restore_with_passphrase"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_margin="16dp"
            android:text="@string/keys_backup_restore_with_passphrase"
            android:textAlignment="center"
            android:textColor="?riotx_text_primary"
            android:textSize="16sp"
            android:textStyle="bold"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@id/keys_backup_shield" />

        <com.google.android.material.textfield.TextInputLayout
            android:id="@+id/keys_backup_passphrase_enter_til"
            style="@style/VectorTextInputLayout"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_marginStart="16dp"
            android:layout_marginLeft="16dp"
            android:layout_marginTop="16dp"
            app:errorEnabled="true"
            app:layout_constraintEnd_toStartOf="@id/keys_backup_view_show_password"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@id/keys_backup_restore_with_passphrase">

            <com.google.android.material.textfield.TextInputEditText
                android:id="@+id/keys_backup_passphrase_enter_edittext"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:hint="@string/passphrase_enter_passphrase"
                android:maxLines="3"
                android:singleLine="false"
                android:textColor="?android:textColorPrimary"
                tools:inputType="textPassword" />

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

        <ImageView
            android:id="@+id/keys_backup_view_show_password"
            android:layout_width="@dimen/layout_touch_size"
            android:layout_height="@dimen/layout_touch_size"
            android:background="?attr/selectableItemBackground"
            android:scaleType="center"
            android:layout_marginTop="8dp"
            android:src="@drawable/ic_eye_black"
            android:tint="?colorAccent"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toEndOf="@+id/keys_backup_passphrase_enter_til"
            app:layout_constraintTop_toTopOf="@+id/keys_backup_passphrase_enter_til" />

        <TextView
            android:id="@+id/keys_backup_passphrase_help_with_link"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_margin="16dp"
            android:textAlignment="center"
            android:textColor="?riotx_text_secondary"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/keys_backup_passphrase_enter_til"
            tools:text="@string/keys_backup_restore_with_passphrase_helper_with_link" />

        <com.google.android.material.button.MaterialButton
            android:id="@+id/keys_backup_restore_with_passphrase_submit"
            style="@style/VectorButtonStyle"
            android:layout_marginTop="@dimen/layout_vertical_margin_big"
            android:layout_marginEnd="@dimen/layout_horizontal_margin"
            android:layout_marginRight="@dimen/layout_horizontal_margin"
            android:layout_marginBottom="@dimen/layout_vertical_margin_big"
            android:minWidth="200dp"
            android:text="@string/keys_backup_unlock_button"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/keys_backup_passphrase_help_with_link" />

    </androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>