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

    <androidx.coordinatorlayout.widget.CoordinatorLayout
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1">

        <com.google.android.material.appbar.AppBarLayout
            android:id="@+id/appBarLayout"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:elevation="0dp">

            <com.google.android.material.appbar.CollapsingToolbarLayout
                android:id="@+id/toolbarLayout"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                app:layout_scrollFlags="scroll|exitUntilCollapsed"
                app:statusBarScrim="@color/transparent"
                app:titleEnabled="false">

                <com.remax.visualnovel.widget.uitoken.view.UITokenTextView
                    android:id="@+id/tvTitle"
                    style="@style/UITitle_HEADLINE_M"
                    android:layout_marginVertical="16dp"
                    android:layout_marginStart="24dp"
                    android:text="@string/wallet" />

            </com.google.android.material.appbar.CollapsingToolbarLayout>

            <net.lucode.hackware.magicindicator.MagicIndicator
                android:id="@+id/indicator"
                android:layout_width="match_parent"
                android:layout_height="32dp"
                android:layout_marginVertical="8dp" />

        </com.google.android.material.appbar.AppBarLayout>

        <androidx.viewpager2.widget.ViewPager2
            android:id="@+id/viewPager"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            app:layout_behavior="@string/appbar_scrolling_view_behavior" />

    </androidx.coordinatorlayout.widget.CoordinatorLayout>

    <androidx.constraintlayout.widget.ConstraintLayout
        android:id="@+id/bottomLayout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:paddingHorizontal="24dp"
        android:paddingVertical="16dp">

        <com.remax.visualnovel.widget.ui.buttons.ButtonView
            android:id="@+id/btnRecharge"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="@string/recharge"
            app:buttonName="DefaultButton_Primary"
            app:buttonSizeType="large"
            app:layout_constraintTop_toTopOf="parent" />

        <com.remax.visualnovel.widget.ui.RadioCheckButton
            android:id="@+id/radioRecharge"
            android:layout_width="16dp"
            android:layout_height="16dp"
            android:layout_marginTop="16dp"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/btnRecharge"
            app:radioCheck="true" />

        <com.remax.visualnovel.widget.uitoken.view.UITokenTextView
            android:id="@+id/agreement"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_marginStart="8dp"
            android:text="@string/recharge_agreement_hint"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toEndOf="@+id/radioRecharge"
            app:layout_constraintTop_toTopOf="@+id/radioRecharge"
            app:textColorToken="@string/color_txt_primary_normal"
            app:textToken="@string/txt_body_s" />

    </androidx.constraintlayout.widget.ConstraintLayout>

</LinearLayout>
