<?xml version="1.0" encoding="utf-8"?>
<merge 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:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="?vctr_keys_backup_banner_accent_color"
    android:minHeight="67dp"
    tools:parentTag="androidx.constraintlayout.widget.ConstraintLayout">

    <ImageView
        android:id="@+id/view_keys_backup_banner_picto"
        android:layout_width="32dp"
        android:layout_height="32dp"
        android:layout_marginStart="19dp"
        android:importantForAccessibility="no"
        android:src="@drawable/ic_secure_backup"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:tint="?vctr_content_primary"
        tools:ignore="MissingPrefix" />

    <Space
        android:id="@+id/view_keys_backup_banner_space1"
        android:layout_width="wrap_content"
        android:layout_height="8dp"
        app:layout_constraintBottom_toTopOf="@id/view_keys_backup_banner_text_1"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintVertical_chainStyle="packed" />

    <TextView
        android:id="@+id/view_keys_backup_banner_text_1"
        style="@style/Widget.Vector.TextView.HeadlineMedium"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="27dp"
        android:text="@string/secure_backup_banner_setup_line1"
        android:textColor="?vctr_content_primary"
        app:layout_constraintBottom_toTopOf="@id/view_keys_backup_banner_text_2"
        app:layout_constraintEnd_toStartOf="@id/view_keys_backup_banner_barrier"
        app:layout_constraintStart_toEndOf="@id/view_keys_backup_banner_picto"
        app:layout_constraintTop_toBottomOf="@id/view_keys_backup_banner_space1" />

    <TextView
        android:id="@+id/view_keys_backup_banner_text_2"
        style="@style/Widget.Vector.TextView.Body"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_marginStart="27dp"
        android:text="@string/secure_backup_banner_setup_line2"
        android:textColor="?vctr_content_secondary"
        android:visibility="gone"
        app:layout_constraintBottom_toTopOf="@id/view_keys_backup_banner_space2"
        app:layout_constraintEnd_toStartOf="@id/view_keys_backup_banner_barrier"
        app:layout_constraintStart_toEndOf="@id/view_keys_backup_banner_picto"
        app:layout_constraintTop_toBottomOf="@id/view_keys_backup_banner_text_1"
        tools:visibility="visible" />

    <Space
        android:id="@+id/view_keys_backup_banner_space2"
        android:layout_width="wrap_content"
        android:layout_height="8dp"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintTop_toBottomOf="@id/view_keys_backup_banner_text_2" />

    <androidx.constraintlayout.widget.Barrier
        android:id="@+id/view_keys_backup_banner_barrier"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:constraint_referenced_ids="view_keys_backup_banner_close,view_keys_backup_banner_loading"
        tools:ignore="MissingConstraints" />

    <ProgressBar
        android:id="@+id/view_keys_backup_banner_loading"
        style="?android:attr/progressBarStyle"
        android:layout_width="20dp"
        android:layout_height="20dp"
        android:layout_margin="14dp"
        android:visibility="gone"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        tools:visibility="visible" />

    <!-- Trick to align the close picto to top of text -->
    <androidx.constraintlayout.widget.Group
        android:id="@+id/view_keys_backup_banner_close_group"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:visibility="gone"
        app:constraint_referenced_ids="view_keys_backup_banner_close,view_keys_backup_banner_close_image"
        tools:visibility="visible" />

    <View
        android:id="@+id/view_keys_backup_banner_close"
        android:layout_width="@dimen/layout_touch_size"
        android:layout_height="0dp"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <ImageView
        android:id="@+id/view_keys_backup_banner_close_image"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="20dp"
        android:contentDescription="@string/a11y_close_keys_backup_banner"
        android:src="@drawable/ic_close_24dp"
        app:layout_constraintEnd_toEndOf="@id/view_keys_backup_banner_close"
        app:layout_constraintStart_toStartOf="@id/view_keys_backup_banner_close"
        app:layout_constraintTop_toTopOf="parent"
        app:tint="?vctr_content_secondary" />

    <View
        android:layout_width="match_parent"
        android:layout_height="1dp"
        android:background="?vctr_list_separator"
        app:layout_constraintBottom_toBottomOf="parent" />

</merge>