<?xml version="1.0" encoding="utf-8"?>
|
<RelativeLayout 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:background="@color/base_green_bg">
|
<com.dayu.baselibrary.view.TitleBar
|
android:id="@+id/titleBar"
|
android:layout_width="match_parent"
|
android:layout_height="@dimen/dimen_title_height"
|
android:background="@color/title_bar_bg"
|
android:elevation="4dp"
|
app:centerText="充值"
|
app:leftImage="@mipmap/icon_back"
|
app:layout_constraintTop_toTopOf="parent" />
|
<ScrollView
|
android:id="@+id/recharge_scrollView"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:layout_below="@+id/titleBar"
|
android:layout_above="@+id/recharge_registBtn"
|
android:fillViewport="true"
|
android:scrollbars="none">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:padding="12dp">
|
|
<!-- 卡片信息卡片 -->
|
<androidx.cardview.widget.CardView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="10dp"
|
app:cardCornerRadius="8dp"
|
app:cardElevation="2dp"
|
app:cardBackgroundColor="@android:color/white">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:padding="12dp">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal"
|
android:layout_marginBottom="12dp">
|
|
<View
|
android:layout_width="3dp"
|
android:layout_height="16dp"
|
android:background="@color/base_blue_bg"
|
android:layout_marginEnd="8dp"
|
android:layout_gravity="center_vertical" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="卡片信息"
|
android:textColor="#333333"
|
android:textSize="16sp"
|
android:textStyle="bold"
|
android:layout_gravity="center_vertical" />
|
</LinearLayout>
|
<!-- 姓名和用户编号合并为一行 -->
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="40dp"
|
android:layout_marginBottom="6dp"
|
android:orientation="horizontal"
|
android:background="@drawable/item_bg_selector"
|
android:paddingLeft="12dp"
|
android:paddingRight="12dp"
|
android:gravity="center_vertical">
|
|
<TextView
|
android:layout_width="70dp"
|
android:layout_height="wrap_content"
|
android:text="姓名:"
|
android:textColor="#666666"
|
android:textSize="13sp" />
|
|
<TextView
|
android:id="@+id/userName"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:textColor="#333333"
|
android:textSize="14sp" />
|
<TextView
|
android:layout_width="70dp"
|
android:layout_height="wrap_content"
|
android:text="卡状态:"
|
android:textColor="#666666"
|
android:textSize="13sp" />
|
|
<TextView
|
android:id="@+id/red_statu"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:textColor="@color/red"
|
android:textSize="14sp"
|
android:textStyle="bold" />
|
|
</LinearLayout>
|
<!-- 卡号 -->
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="40dp"
|
android:layout_marginBottom="6dp"
|
android:orientation="horizontal"
|
android:background="@drawable/item_bg_selector"
|
android:paddingLeft="12dp"
|
android:paddingRight="12dp"
|
android:gravity="center_vertical">
|
|
<TextView
|
android:layout_width="70dp"
|
android:layout_height="wrap_content"
|
android:text="卡地址:"
|
android:textColor="#666666"
|
android:textSize="13sp" />
|
|
<TextView
|
android:id="@+id/red_initCode"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text=""
|
android:textColor="#333333"
|
android:textSize="14sp"
|
android:textStyle="bold" />
|
</LinearLayout>
|
|
<!-- 卡状态 -->
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="40dp"
|
android:layout_marginBottom="6dp"
|
android:orientation="horizontal"
|
android:background="@drawable/item_bg_selector"
|
android:paddingLeft="12dp"
|
android:paddingRight="12dp"
|
android:gravity="center_vertical">
|
|
<TextView
|
android:layout_width="70dp"
|
android:layout_height="wrap_content"
|
android:text="卡编号:"
|
android:textColor="#666666"
|
android:textSize="13sp"
|
/>
|
|
<TextView
|
android:id="@+id/red_cardNum"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:text=""
|
android:textColor="#333333"
|
android:textSize="14sp" />
|
</LinearLayout>
|
|
|
|
<!-- 当前余额 -->
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="40dp"
|
android:orientation="horizontal"
|
android:background="@drawable/item_bg_selector"
|
android:paddingLeft="12dp"
|
android:paddingRight="12dp"
|
android:gravity="center_vertical">
|
|
<TextView
|
android:layout_width="70dp"
|
android:layout_height="wrap_content"
|
android:text="当前余额:"
|
android:textColor="#666666"
|
android:textSize="13sp" />
|
|
<TextView
|
android:id="@+id/red_remainder_blance"
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:textColor="@color/base_blue_bg"
|
android:textSize="16sp"
|
android:textStyle="bold" />
|
</LinearLayout>
|
</LinearLayout>
|
</androidx.cardview.widget.CardView>
|
|
<!-- 充值信息卡片 -->
|
<androidx.cardview.widget.CardView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="10dp"
|
app:cardCornerRadius="8dp"
|
app:cardElevation="2dp"
|
app:cardBackgroundColor="@android:color/white">
|
|
<LinearLayout
|
android:id="@+id/recharge_LL"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:padding="12dp">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal"
|
android:layout_marginBottom="12dp">
|
|
<View
|
android:layout_width="3dp"
|
android:layout_height="16dp"
|
android:background="@color/red"
|
android:layout_marginEnd="8dp"
|
android:layout_gravity="center_vertical" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="充值信息"
|
android:textColor="#333333"
|
android:textSize="16sp"
|
android:textStyle="bold"
|
android:layout_gravity="center_vertical" />
|
</LinearLayout>
|
|
<!-- 充值金额和赠送金额合并为一行 -->
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal"
|
android:layout_marginBottom="8dp">
|
|
<LinearLayout
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:orientation="vertical"
|
android:layout_marginEnd="8dp">
|
|
<TextView
|
android:id="@+id/recharge_tx"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="6dp"
|
android:text="充值金额(元):"
|
android:textColor="@color/red"
|
android:textSize="14sp"
|
android:textStyle="bold" />
|
|
<EditText
|
android:id="@+id/recharge_morny"
|
android:layout_width="match_parent"
|
android:layout_height="42dp"
|
android:background="@drawable/edit_text_bg"
|
android:hint="请输入充值金额"
|
android:inputType="numberDecimal"
|
android:padding="12dp"
|
android:textSize="14sp"
|
android:maxLines="1" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:orientation="vertical"
|
android:layout_marginStart="8dp">
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="6dp"
|
android:text="赠送金额(元):"
|
android:textColor="#666666"
|
android:textSize="14sp" />
|
|
<EditText
|
android:id="@+id/recharge_water"
|
android:layout_width="match_parent"
|
android:layout_height="42dp"
|
android:background="@drawable/edit_text_bg"
|
android:hint="赠送金额(选填)"
|
android:inputType="numberDecimal"
|
android:padding="12dp"
|
android:textSize="14sp"
|
android:maxLines="1" />
|
</LinearLayout>
|
</LinearLayout>
|
</LinearLayout>
|
</androidx.cardview.widget.CardView>
|
|
<!-- 支付方式卡片 -->
|
<androidx.cardview.widget.CardView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
app:cardCornerRadius="8dp"
|
app:cardElevation="2dp"
|
app:cardBackgroundColor="@android:color/white">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:padding="12dp">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal"
|
android:layout_marginBottom="12dp">
|
|
<View
|
android:layout_width="3dp"
|
android:layout_height="16dp"
|
android:background="@color/base_blue_bg"
|
android:layout_marginEnd="8dp"
|
android:layout_gravity="center_vertical" />
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="支付方式"
|
android:textColor="#333333"
|
android:textSize="16sp"
|
android:textStyle="bold"
|
android:layout_gravity="center_vertical" />
|
</LinearLayout>
|
|
<RadioGroup
|
android:id="@+id/newCard_paymentMethod"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal">
|
|
<RadioButton
|
android:id="@+id/newCard_cashPayment"
|
android:layout_width="0dp"
|
android:layout_height="42dp"
|
android:layout_marginEnd="8dp"
|
android:layout_weight="1"
|
android:background="@drawable/radio_selector"
|
android:button="@null"
|
android:checked="true"
|
android:gravity="center"
|
android:text="现金"
|
android:textColor="@color/radio_button_text_color"
|
android:textSize="14sp" />
|
|
<RadioButton
|
android:id="@+id/newCard_posPayment"
|
android:layout_width="0dp"
|
android:layout_height="42dp"
|
android:layout_marginEnd="8dp"
|
android:layout_weight="1"
|
android:background="@drawable/radio_selector"
|
android:button="@null"
|
android:gravity="center"
|
android:text="POS机"
|
android:textColor="@color/radio_button_text_color"
|
android:textSize="14sp" />
|
|
<RadioButton
|
android:id="@+id/newCard_bankTransfer"
|
android:layout_width="0dp"
|
android:layout_height="42dp"
|
android:layout_weight="1"
|
android:background="@drawable/radio_selector"
|
android:button="@null"
|
android:gravity="center"
|
android:text="银行转账"
|
android:textColor="@color/radio_button_text_color"
|
android:textSize="14sp" />
|
</RadioGroup>
|
</LinearLayout>
|
</androidx.cardview.widget.CardView>
|
</LinearLayout>
|
</ScrollView>
|
|
<Button
|
android:id="@+id/recharge_registBtn"
|
android:layout_width="match_parent"
|
android:layout_height="50dp"
|
android:layout_alignParentBottom="true"
|
android:layout_marginLeft="12dp"
|
android:layout_marginTop="6dp"
|
android:layout_marginRight="12dp"
|
android:layout_marginBottom="12dp"
|
android:background="@drawable/recharge_button_ripple"
|
android:elevation="4dp"
|
android:gravity="center"
|
android:text="确认充值(写卡)"
|
android:textColor="@color/white"
|
android:textSize="16sp"
|
android:textStyle="bold" />
|
</RelativeLayout>
|