2025-11-26 16:47:15 +08:00
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
|
|
|
|
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:id="@+id/rootCoordinator"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:background="#F6F7FB"
|
|
|
|
|
tools:context=".ui.home.HomeFragment">
|
|
|
|
|
<!-- 背景 -->
|
|
|
|
|
<ImageView
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:src="@drawable/bg"
|
|
|
|
|
android:scaleType="fitXY"
|
|
|
|
|
android:adjustViewBounds="true" />
|
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:fillViewport="true"
|
|
|
|
|
android:overScrollMode="never">
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
<!-- 标题和返回 -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="horizontal"
|
2026-02-10 18:26:31 +08:00
|
|
|
android:padding="@dimen/sw_16dp"
|
2025-11-26 16:47:15 +08:00
|
|
|
android:gravity="center_vertical">
|
|
|
|
|
<!-- 返回按钮 -->
|
|
|
|
|
<FrameLayout
|
|
|
|
|
android:id="@+id/iv_close"
|
2026-02-10 18:26:31 +08:00
|
|
|
android:layout_width="@dimen/sw_46dp"
|
|
|
|
|
android:layout_height="@dimen/sw_46dp">
|
2025-11-26 16:47:15 +08:00
|
|
|
<ImageView
|
2026-02-10 18:26:31 +08:00
|
|
|
android:layout_width="@dimen/sw_13dp"
|
|
|
|
|
android:layout_height="@dimen/sw_13dp"
|
2025-11-26 16:47:15 +08:00
|
|
|
android:layout_gravity="center"
|
|
|
|
|
android:src="@drawable/more_icons"
|
|
|
|
|
android:rotation="180"
|
|
|
|
|
android:scaleType="fitCenter" />
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1"
|
2026-02-10 18:26:31 +08:00
|
|
|
android:layout_marginEnd="@dimen/sw_49dp"
|
2025-11-26 16:47:15 +08:00
|
|
|
android:gravity="center"
|
|
|
|
|
android:textStyle="bold"
|
|
|
|
|
android:text="Points recharge"
|
|
|
|
|
android:textColor="#1B1F1A"
|
2026-02-10 18:26:31 +08:00
|
|
|
android:textSize="@dimen/sw_16sp" />
|
2025-11-26 16:47:15 +08:00
|
|
|
</LinearLayout>
|
|
|
|
|
<!-- 现有金币 -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2026-02-10 18:26:31 +08:00
|
|
|
android:elevation="@dimen/sw_2dp"
|
|
|
|
|
android:paddingStart="@dimen/sw_16dp"
|
|
|
|
|
android:paddingEnd="@dimen/sw_16dp"
|
2025-11-26 16:47:15 +08:00
|
|
|
android:orientation="horizontal">
|
|
|
|
|
<!-- 金币 -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
2026-02-10 18:26:31 +08:00
|
|
|
android:layout_marginTop="@dimen/sw_20dp"
|
2025-11-26 16:47:15 +08:00
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="My points"
|
|
|
|
|
android:textColor="#1B1F1A"
|
2026-02-10 18:26:31 +08:00
|
|
|
android:textSize="@dimen/sw_14sp"/>
|
2025-11-26 16:47:15 +08:00
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="4230"
|
|
|
|
|
android:textColor="#02BEAC"
|
2026-02-10 18:26:31 +08:00
|
|
|
android:textSize="@dimen/sw_30sp" />
|
2025-11-26 16:47:15 +08:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<!-- 金币图标 -->
|
|
|
|
|
<ImageView
|
2026-02-10 18:26:31 +08:00
|
|
|
android:layout_width="@dimen/sw_131dp"
|
|
|
|
|
android:layout_height="@dimen/sw_144dp"
|
|
|
|
|
android:layout_marginEnd="@dimen/sw_10dp"
|
2025-11-26 16:47:15 +08:00
|
|
|
android:src="@drawable/points_gold_coins"
|
|
|
|
|
android:scaleType="fitXY"/>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<!-- 充值区域 -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2026-02-10 18:26:31 +08:00
|
|
|
android:padding="@dimen/sw_16dp"
|
|
|
|
|
android:layout_marginTop="@dimen/_sw_40dp"
|
2025-11-26 16:47:15 +08:00
|
|
|
android:background="@drawable/gold_coin_recharge_bt_bg"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
<!-- 标题 -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="horizontal"
|
|
|
|
|
android:gravity="center_vertical">
|
|
|
|
|
<ImageView
|
2026-02-10 18:26:31 +08:00
|
|
|
android:layout_width="@dimen/sw_24dp"
|
|
|
|
|
android:layout_height="@dimen/sw_24dp"
|
2025-11-26 16:47:15 +08:00
|
|
|
android:src="@drawable/gold_coin"
|
|
|
|
|
android:scaleType="fitXY"/>
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2026-02-10 18:26:31 +08:00
|
|
|
android:layout_marginStart="@dimen/sw_8dp"
|
2025-11-26 16:47:15 +08:00
|
|
|
android:text="Recharge now"
|
|
|
|
|
android:textColor="#1B1F1A"
|
2026-02-10 18:26:31 +08:00
|
|
|
android:textSize="@dimen/sw_14sp" />
|
2025-11-26 16:47:15 +08:00
|
|
|
</LinearLayout>
|
|
|
|
|
<!-- 套餐选择 -->
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2026-02-10 18:26:31 +08:00
|
|
|
android:layout_marginTop="@dimen/sw_20dp"
|
2025-11-26 16:47:15 +08:00
|
|
|
android:orientation="vertical">
|
|
|
|
|
<!-- 套餐 -->
|
|
|
|
|
<LinearLayout
|
2026-02-10 18:26:31 +08:00
|
|
|
android:layout_width="@dimen/sw_108dp"
|
|
|
|
|
android:layout_height="@dimen/sw_116dp"
|
2025-11-26 16:47:15 +08:00
|
|
|
android:background="@drawable/gold_coin_recharge_package_bg"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
<!-- 金币数 -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
<ImageView
|
2026-02-10 18:26:31 +08:00
|
|
|
android:layout_width="@dimen/sw_24dp"
|
|
|
|
|
android:layout_height="@dimen/sw_24dp"
|
2025-11-26 16:47:15 +08:00
|
|
|
android:src="@drawable/gold_coin"
|
|
|
|
|
android:scaleType="fitXY"/>
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2026-02-10 18:26:31 +08:00
|
|
|
android:layout_marginStart="@dimen/sw_4dp"
|
2025-11-26 16:47:15 +08:00
|
|
|
android:text="690"
|
|
|
|
|
android:textColor="#02BEAC"
|
2026-02-10 18:26:31 +08:00
|
|
|
android:textSize="@dimen/sw_20sp" />
|
2025-11-26 16:47:15 +08:00
|
|
|
</LinearLayout>
|
|
|
|
|
<!-- 花费金额 -->
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2026-02-10 18:26:31 +08:00
|
|
|
android:layout_marginTop="@dimen/sw_10dp"
|
2025-11-26 16:47:15 +08:00
|
|
|
android:gravity="center"
|
|
|
|
|
android:text="$6.90"
|
2026-02-10 18:26:31 +08:00
|
|
|
android:textSize="@dimen/sw_18sp"
|
2025-11-26 16:47:15 +08:00
|
|
|
android:textColor="#797979" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
<!-- ````````````````````````````` -->
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<!-- 充值按钮区域 -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:background="#ffffff"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<!-- 充值按钮 -->
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/rechargeButton"
|
2026-02-10 18:26:31 +08:00
|
|
|
android:layout_marginTop="@dimen/sw_126dp"
|
|
|
|
|
android:layout_width="@dimen/sw_349dp"
|
|
|
|
|
android:layout_height="@dimen/sw_57dp"
|
2025-11-26 16:47:15 +08:00
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:background="@drawable/gold_coin_recharge_button_bg"
|
|
|
|
|
android:scaleType="centerCrop"
|
2026-02-10 18:26:31 +08:00
|
|
|
android:elevation="@dimen/sw_4dp"
|
2025-11-26 16:47:15 +08:00
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
2026-02-10 18:26:31 +08:00
|
|
|
android:textSize="@dimen/sw_15sp"
|
2025-11-26 16:47:15 +08:00
|
|
|
android:textStyle="bold"
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
android:textColor="#1B1F1A"
|
|
|
|
|
android:text="Recharge now" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
<!-- 协议 -->
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2026-02-10 18:26:31 +08:00
|
|
|
android:layout_marginTop="@dimen/sw_17dp"
|
|
|
|
|
android:textSize="@dimen/sw_10sp"
|
2025-11-26 16:47:15 +08:00
|
|
|
android:text="By clicking "pay", you indicate your agreement to the"
|
|
|
|
|
android:textColor="#1B1F1A"
|
|
|
|
|
android:gravity="center_horizontal"/>
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2026-02-10 18:26:31 +08:00
|
|
|
android:layout_marginTop="@dimen/sw_4dp"
|
|
|
|
|
android:textSize="@dimen/sw_10sp"
|
2025-11-26 16:47:15 +08:00
|
|
|
android:text="《Embership Agreement》"
|
|
|
|
|
android:textColor="#02BEAC"
|
|
|
|
|
android:gravity="center_horizontal" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|