112 lines
3.7 KiB
XML
112 lines
3.7 KiB
XML
<?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="wrap_content"
|
|
android:orientation="vertical"
|
|
android:background="@android:color/white"
|
|
android:padding="24dp">
|
|
|
|
<!-- 标题 -->
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="充值金币"
|
|
android:textColor="#333333"
|
|
android:textSize="20sp"
|
|
android:textStyle="bold"
|
|
android:gravity="center"
|
|
android:layout_marginBottom="20dp" />
|
|
|
|
<!-- 当前余额 -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="center"
|
|
android:background="@drawable/bg_white_16"
|
|
android:padding="16dp"
|
|
android:layout_marginBottom="24dp">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="当前余额:"
|
|
android:textColor="#666666"
|
|
android:textSize="14sp" />
|
|
|
|
<ImageView
|
|
android:layout_width="20dp"
|
|
android:layout_height="20dp"
|
|
android:src="@drawable/ic_coin_24"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginEnd="4dp" />
|
|
|
|
<TextView
|
|
android:id="@+id/currentBalance"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="1000"
|
|
android:textColor="#FF9800"
|
|
android:textSize="18sp"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text=" 金币"
|
|
android:textColor="#666666"
|
|
android:textSize="14sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<!-- 充值选项标题 -->
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="选择充值金额"
|
|
android:textColor="#333333"
|
|
android:textSize="16sp"
|
|
android:textStyle="bold"
|
|
android:layout_marginBottom="12dp" />
|
|
|
|
<!-- 充值选项网格 -->
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/rechargeOptionsRecyclerView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="24dp" />
|
|
|
|
<!-- 按钮区域 -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="center">
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/cancelButton"
|
|
style="@style/Widget.Material3.Button.OutlinedButton"
|
|
android:layout_width="0dp"
|
|
android:layout_height="48dp"
|
|
android:layout_weight="1"
|
|
android:layout_marginEnd="8dp"
|
|
android:text="取消"
|
|
android:textSize="14sp"
|
|
app:strokeColor="#CCCCCC" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/confirmRechargeButton"
|
|
android:layout_width="0dp"
|
|
android:layout_height="48dp"
|
|
android:layout_weight="1"
|
|
android:layout_marginStart="8dp"
|
|
android:text="确认充值"
|
|
android:textSize="14sp"
|
|
android:textColor="@android:color/white"
|
|
app:backgroundTint="#FF9800" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|