191 lines
8.5 KiB
XML
191 lines
8.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<layout 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"
|
|
tools:context=".activity.RechargeActivity">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<com.xscm.moduleutil.widget.CustomTopBar
|
|
android:id="@+id/top_bar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/rl_1"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/dp_112"
|
|
android:layout_marginStart="@dimen/dp_16"
|
|
android:layout_marginTop="@dimen/dp_12"
|
|
android:layout_marginEnd="@dimen/dp_16"
|
|
android:background="@mipmap/cz_bj"
|
|
app:layout_constraintTop_toBottomOf="@id/top_bar">
|
|
|
|
<TextView
|
|
android:id="@+id/t_1"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="@dimen/dp_24"
|
|
android:layout_marginStart="@dimen/dp_16"
|
|
android:layout_marginTop="@dimen/dp_21"
|
|
android:gravity="left|center_vertical"
|
|
android:text="金币余额"
|
|
android:textColor="@color/colorWhite100"
|
|
android:textSize="@dimen/sp_16" />
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/t_1"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_centerInParent="true"
|
|
android:layout_marginTop="@dimen/dp_8">
|
|
|
|
<ImageView
|
|
android:id="@+id/im_1"
|
|
android:layout_width="@dimen/dp_28"
|
|
android:layout_height="@dimen/dp_28"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_centerInParent="true"
|
|
android:layout_marginStart="@dimen/dp_16"
|
|
android:src="@mipmap/jinb" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_jb"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="@dimen/dp_38"
|
|
android:layout_centerInParent="true"
|
|
android:layout_marginStart="@dimen/dp_4"
|
|
android:layout_toRightOf="@+id/im_1"
|
|
android:gravity="left|center"
|
|
tools:text="111111000"
|
|
android:textColor="@color/colorWhite100"
|
|
android:textSize="@dimen/sp_28" />
|
|
</RelativeLayout>
|
|
</RelativeLayout>
|
|
|
|
<!-- 使用NestedScrollView替代ScrollView -->
|
|
<androidx.core.widget.NestedScrollView
|
|
android:id="@+id/nested_scroll_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_marginTop="@dimen/dp_12"
|
|
app:layout_constraintTop_toBottomOf="@+id/rl_1"
|
|
app:layout_constraintBottom_toTopOf="@+id/tv_payment"
|
|
app:layout_constraintVertical_bias="0.0">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<!-- 第一个RecyclerView -->
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/recycler_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/dp_16"
|
|
android:nestedScrollingEnabled="false" />
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/r_4"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/dp_16"
|
|
android:layout_marginTop="@dimen/dp_12"
|
|
android:layout_marginEnd="@dimen/dp_16"
|
|
android:visibility="gone">
|
|
|
|
<TextView
|
|
android:id="@+id/t_4"
|
|
android:layout_width="@dimen/dp_18"
|
|
android:layout_height="@dimen/dp_27"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_centerInParent="true"
|
|
android:layout_centerVertical="true"
|
|
android:layout_marginStart="@dimen/dp_16"
|
|
android:gravity="center"
|
|
android:text="¥"
|
|
android:textColor="@color/color_FF000000"
|
|
android:textSize="@dimen/sp_18"
|
|
android:textStyle="bold" />
|
|
|
|
<com.google.android.material.textfield.TextInputEditText
|
|
android:id="@+id/et_custom_amount"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerInParent="true"
|
|
android:layout_toRightOf="@+id/t_4"
|
|
android:background="@null"
|
|
android:hint="请输入充值金额"
|
|
android:inputType="numberDecimal"
|
|
android:textColorHint="@color/color_FF999999"
|
|
android:textSize="@dimen/sp_14" />
|
|
|
|
<TextView
|
|
android:id="@+id/t_5"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="@dimen/dp_27"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_centerInParent="true"
|
|
android:layout_marginStart="@dimen/dp_4"
|
|
android:gravity="center"
|
|
android:text="将获得0金币"
|
|
android:textStyle="bold"
|
|
android:visibility="gone" />
|
|
</RelativeLayout>
|
|
|
|
<View
|
|
android:id="@+id/v_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/dp_0_5"
|
|
android:layout_marginStart="@dimen/dp_16"
|
|
android:layout_marginTop="@dimen/dp_12"
|
|
android:layout_marginEnd="@dimen/dp_16"
|
|
android:background="@color/color_FF999999" />
|
|
|
|
<TextView
|
|
android:id="@+id/t_2"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/dp_16"
|
|
android:layout_marginTop="@dimen/dp_12"
|
|
android:layout_marginEnd="@dimen/dp_16"
|
|
android:text="@string/payment_method"
|
|
android:textColor="@color/color_FF333333"
|
|
android:textSize="@dimen/sp_16" />
|
|
|
|
<!-- 第二个RecyclerView -->
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/recycle_view1"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/dp_16"
|
|
android:layout_marginTop="@dimen/dp_12"
|
|
android:layout_marginEnd="@dimen/dp_16"
|
|
android:nestedScrollingEnabled="false" />
|
|
|
|
</LinearLayout>
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
<TextView
|
|
android:id="@+id/tv_payment"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/dp_42"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_marginLeft="@dimen/dp_38"
|
|
android:layout_marginRight="@dimen/dp_38"
|
|
android:layout_marginBottom="@dimen/dp_27"
|
|
android:background="@drawable/cs"
|
|
android:gravity="center"
|
|
android:text="确认支付"
|
|
android:textColor="@color/color_FF333333"
|
|
android:textSize="@dimen/sp_14"
|
|
app:layout_constraintBottom_toBottomOf="parent" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</layout>
|