<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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:gravity="center_horizontal"
    android:orientation="vertical"
    android:paddingTop="24dp"
    android:paddingBottom="16dp">

    <FrameLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginBottom="32dp"
        android:minHeight="48dp">

        <com.google.android.material.button.MaterialButton
            android:id="@+id/confirm_payment_status_confirm"
            style="@style/Signal.Widget.Button.Large.Primary"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="@string/ConfirmPayment__confirm_payment"
            android:visibility="gone" />

        <com.airbnb.lottie.LottieAnimationView
            android:id="@+id/confirm_payment_spinner_lottie"
            android:layout_width="48dp"
            android:layout_height="48dp"
            android:layout_gravity="center"
            android:visibility="invisible"
            app:lottie_loop="true"
            app:lottie_rawRes="@raw/lottie_payment_spinner" />

        <com.airbnb.lottie.LottieAnimationView
            android:id="@+id/confirm_payment_success_lottie"
            android:layout_width="48dp"
            android:layout_height="48dp"
            android:layout_gravity="center"
            android:visibility="invisible"
            app:lottie_rawRes="@raw/lottie_payment_spinner_success" />

        <com.airbnb.lottie.LottieAnimationView
            android:id="@+id/confirm_payment_error_lottie"
            android:layout_width="48dp"
            android:layout_height="48dp"
            android:layout_gravity="center"
            android:visibility="invisible"
            app:lottie_rawRes="@raw/lottie_payment_spinner_fail" />

        <com.airbnb.lottie.LottieAnimationView
            android:id="@+id/confirm_payment_timeout_lottie"
            android:layout_width="48dp"
            android:layout_height="48dp"
            android:layout_gravity="center"
            android:visibility="invisible"
            app:lottie_rawRes="@raw/lottie_payment_spinner_info" />

    </FrameLayout>

    <TextView
        android:id="@+id/confirm_payment_status_info"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center_horizontal"
        android:textAppearance="@style/TextAppearance.Signal.Body1"
        android:textColor="@color/signal_text_secondary"
        tools:text="Balance: 520 MOB" />

</LinearLayout>