<?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:fillViewport="true"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

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

        <androidx.appcompat.widget.Toolbar
            android:id="@+id/payments_add_money_toolbar"
            android:layout_width="match_parent"
            android:layout_height="@dimen/signal_m3_toolbar_height"
            android:minHeight="@dimen/signal_m3_toolbar_height"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toTopOf="parent"
            app:navigationIcon="@drawable/ic_arrow_left_24"
            app:title="@string/PaymentsAddMoneyFragment__add_funds"
            app:titleTextAppearance="@style/Signal.Text.TitleLarge" />

        <LinearLayout
            android:id="@+id/payments_add_money_qr_border"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_marginStart="48dp"
            android:layout_marginTop="32dp"
            android:layout_marginEnd="48dp"
            android:background="@drawable/payments_add_money_qr_border"
            android:gravity="center"
            android:orientation="vertical"
            android:padding="16dp"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintHorizontal_bias="0.5"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/payments_add_money_toolbar">

            <org.thoughtcrime.securesms.components.qr.QrView
                android:id="@+id/payments_add_money_qr_image"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:scaleType="fitXY"
                app:qr_background_color="@color/white"
                app:qr_foreground_color="@color/black" />

            <TextView
                android:id="@+id/payments_add_money_your_wallet_address"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="@string/PaymentsAddMoneyFragment__your_wallet_address"
                android:textAppearance="@style/TextAppearance.Signal.Body2.Bold"
                android:textColor="@color/signal_text_primary" />

            <TextView
                android:id="@+id/payments_add_money_abbreviated_wallet_address"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="4dp"
                android:textAppearance="@style/TextAppearance.Signal.Mono"
                android:textColor="@color/signal_text_secondary"
                tools:text="2sZNt8dF...AxD345i2" />

            <com.google.android.material.button.MaterialButton
                android:id="@+id/payments_add_money_copy_address_button"
                style="@style/Signal.Widget.Button.Small.Primary"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="16dp"
                android:text="@string/PaymentsAddMoneyFragment__copy" />

        </LinearLayout>

        <org.thoughtcrime.securesms.util.views.LearnMoreTextView
            android:id="@+id/payments_add_money_info"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_marginStart="64dp"
            android:layout_marginTop="32dp"
            android:layout_marginEnd="64dp"
            android:lineSpacingExtra="6sp"
            android:text="@string/PaymentsAddMoneyFragment__to_add_funds"
            android:textAlignment="center"
            android:textAppearance="@style/TextAppearance.Signal.Body2"
            android:textColor="@color/signal_text_secondary"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintHorizontal_bias="0.5"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/payments_add_money_qr_border" />

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