<?xml version="1.0" encoding="utf-8"?>
<androidx.core.widget.NestedScrollView
    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">

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

        <com.remax.visualnovel.widget.uitoken.view.UITokenConstraintLayout
            android:id="@+id/balanceLayout"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:backgroundColorToken="@string/color_background_specialmap"
            app:layout_constraintTop_toTopOf="parent"
            app:radiusToken="@string/radius_l"
            app:strokeColorToken="@string/color_outline_normal"
            app:strokeWidthToken="@string/border_s">

            <androidx.appcompat.widget.AppCompatImageView
                android:layout_width="0dp"
                android:layout_height="0dp"
                android:layout_marginHorizontal="1dp"
                android:src="@mipmap/bg_level_bill_page"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintDimensionRatio="h,345:132"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintStart_toStartOf="parent" />

            <com.remax.visualnovel.widget.uitoken.view.UITokenTextView
                android:id="@+id/balanceTitle"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="24dp"
                android:text="@string/balance"
                app:layout_constraintBottom_toTopOf="@+id/balance"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toTopOf="parent"
                app:textColorToken="@string/color_txt_primary_normal"
                app:textToken="@string/txt_title_s" />

            <com.remax.visualnovel.widget.PriceView
                android:id="@+id/balance"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="4dp"
                app:layout_constraintBottom_toTopOf="@+id/transactionEnter"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toBottomOf="@+id/balanceTitle"
                app:priceIconPadding="8dp"
                app:priceIconSize="24dp"
                app:priceText="0"
                app:priceTextToken="@string/txt_numDisplay_l" />

            <com.remax.visualnovel.widget.uitoken.view.UITokenTextView
                android:id="@+id/transactionEnter"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:gravity="center"
                android:paddingVertical="24dp"
                android:text="@string/transaction_detail"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toBottomOf="@+id/balance"
                app:textColorToken="@string/color_primary_variant_normal"
                app:textToken="@string/txt_label_s" />

        </com.remax.visualnovel.widget.uitoken.view.UITokenConstraintLayout>

        <com.remax.visualnovel.widget.uitoken.view.UITokenTextView
            android:id="@+id/rechargeTitle"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="24dp"
            android:text="@string/recharge"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/balanceLayout"
            app:textColorToken="@string/color_txt_primary_normal"
            app:textToken="@string/txt_title_m" />

        <androidx.recyclerview.widget.RecyclerView
            android:id="@+id/rvRecharge"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:nestedScrollingEnabled="false"
            android:overScrollMode="never"
            app:layout_constraintTop_toBottomOf="@+id/rechargeTitle" />


    </androidx.constraintlayout.widget.ConstraintLayout>
</androidx.core.widget.NestedScrollView>
