<?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"
    tools:viewBindingIgnore="true"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:fillViewport="true">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:paddingStart="32dp"
        android:paddingTop="@dimen/transfer_top_padding"
        android:paddingEnd="32dp"
        android:paddingBottom="16dp">

        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginBottom="16dp"
            android:gravity="center"
            android:text="@string/TransferOrRestoreFragment__transfer_or_restore_account"
            android:textAppearance="@style/Signal.Text.Headline.Registration" />

        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginBottom="@dimen/transfer_item_spacing"
            android:gravity="center"
            android:text="@string/TransferOrRestoreFragment__if_you_have_previously_registered_a_signal_account"
            android:textAppearance="@style/TextAppearance.Signal.Body1" />

        <androidx.constraintlayout.widget.ConstraintLayout
            android:id="@+id/transfer_or_restore_fragment_transfer"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginBottom="16dp"
            android:background="@drawable/selectable_rounded_background"
            android:padding="16dp">

            <androidx.appcompat.widget.AppCompatImageView
                android:id="@+id/transfer_or_restore_fragment_transfer_icon"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toTopOf="parent"
                app:srcCompat="@drawable/ic_transfer_phone_outline_60" />

            <TextView
                android:id="@+id/transfer_or_restore_fragment_transfer_header"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_marginStart="16dp"
                android:text="@string/TransferOrRestoreFragment__transfer_from_android_device"
                android:textAppearance="@style/TextAppearance.Signal.Body1.Bold"
                app:layout_constraintBottom_toTopOf="@+id/transfer_or_restore_fragment_transfer_description"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintHorizontal_bias="0"
                app:layout_constraintStart_toEndOf="@+id/transfer_or_restore_fragment_transfer_icon"
                app:layout_constraintTop_toTopOf="parent"
                app:layout_constraintVertical_chainStyle="packed" />

            <TextView
                android:id="@+id/transfer_or_restore_fragment_transfer_description"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:textColor="@color/signal_text_secondary"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintHorizontal_bias="0"
                app:layout_constraintStart_toStartOf="@+id/transfer_or_restore_fragment_transfer_header"
                app:layout_constraintTop_toBottomOf="@+id/transfer_or_restore_fragment_transfer_header"
                tools:text="@string/TransferOrRestoreFragment__transfer_your_account_and_messages_from_your_old_android_device" />

        </androidx.constraintlayout.widget.ConstraintLayout>

        <androidx.constraintlayout.widget.ConstraintLayout
            android:id="@+id/transfer_or_restore_fragment_restore"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginBottom="16dp"
            android:background="@drawable/selectable_rounded_background"
            android:padding="16dp">

            <androidx.appcompat.widget.AppCompatImageView
                android:id="@+id/transfer_or_restore_fragment_restore_icon"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toTopOf="parent"
                app:srcCompat="@drawable/ic_backup_outline_60"
                app:tint="@color/signal_accent_primary" />

            <TextView
                android:id="@+id/transfer_or_restore_fragment_restore_header"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_marginStart="16dp"
                android:text="@string/TransferOrRestoreFragment__restore_from_backup"
                android:textAppearance="@style/TextAppearance.Signal.Body1.Bold"
                app:layout_constraintBottom_toTopOf="@+id/transfer_or_restore_fragment_restore_description"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintHorizontal_bias="0"
                app:layout_constraintStart_toEndOf="@+id/transfer_or_restore_fragment_restore_icon"
                app:layout_constraintTop_toTopOf="parent"
                app:layout_constraintVertical_chainStyle="packed" />

            <TextView
                android:id="@+id/transfer_or_restore_fragment_restore_description"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:text="@string/TransferOrRestoreFragment__restore_your_messages_from_a_local_backup"
                android:textColor="@color/signal_text_secondary"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintHorizontal_bias="0"
                app:layout_constraintStart_toStartOf="@+id/transfer_or_restore_fragment_restore_header"
                app:layout_constraintTop_toBottomOf="@+id/transfer_or_restore_fragment_restore_header" />

        </androidx.constraintlayout.widget.ConstraintLayout>

    </LinearLayout>

</ScrollView>
