<?xml version="1.0" encoding="utf-8"?>
|
<androidx.constraintlayout.widget.ConstraintLayout 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:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:background="#F5F7FA">
|
|
<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"
|
tools:ignore="MissingConstraints" />
|
|
<androidx.cardview.widget.CardView
|
android:id="@+id/nfcContainer"
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:layout_marginStart="16dp"
|
android:layout_marginTop="24dp"
|
android:layout_marginEnd="16dp"
|
android:layout_marginBottom="24dp"
|
android:visibility="gone"
|
app:cardBackgroundColor="@android:color/white"
|
app:cardCornerRadius="12dp"
|
app:cardElevation="4dp"
|
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toBottomOf="@id/titleBar">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:gravity="center"
|
android:orientation="vertical"
|
android:padding="16dp">
|
|
<TextView
|
android:id="@+id/textView"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:gravity="center"
|
android:text="请将新卡贴在设备上进行读卡"
|
android:textColor="#333333"
|
android:textSize="18sp"
|
android:textStyle="bold" />
|
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:gravity="center"
|
android:text="(将获取物理卡卡号)"
|
android:textColor="#999999"
|
android:textSize="18sp"
|
android:textStyle="bold" />
|
|
<ImageView
|
android:id="@+id/nfcImageView"
|
android:layout_width="200dp"
|
android:layout_height="200dp"
|
android:layout_marginTop="24dp"
|
android:scaleType="fitCenter"
|
android:src="@mipmap/nfc_write" />
|
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="16dp"
|
android:gravity="center"
|
android:text="请保持手持机和卡片不要移动"
|
android:textColor="#666666"
|
android:textSize="14sp" />
|
</LinearLayout>
|
</androidx.cardview.widget.CardView>
|
|
<ScrollView
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
android:fillViewport="true"
|
android:scrollbars="none"
|
android:visibility="gone"
|
app:layout_constraintBottom_toTopOf="@+id/newCard_registBtn"
|
app:layout_constraintTop_toBottomOf="@+id/titleBar">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:padding="16dp">
|
|
<androidx.cardview.widget.CardView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="16dp"
|
app:cardCornerRadius="8dp"
|
app:cardElevation="2dp">
|
|
<LinearLayout
|
android:id="@+id/center_data"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:padding="16dp">
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="16dp"
|
android:text="基本信息"
|
android:textColor="#333333"
|
android:textSize="18sp"
|
android:textStyle="bold" />
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="12dp"
|
android:gravity="center_vertical"
|
android:orientation="horizontal">
|
|
<TextView
|
android:layout_width="120dp"
|
android:layout_height="wrap_content"
|
android:text="卡号:"
|
android:textColor="#666666"
|
android:textSize="@dimen/new_card_size" />
|
|
<TextView
|
android:id="@+id/newCard_arerNumber"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="8dp"
|
android:textColor="#333333"
|
android:textSize="@dimen/new_card_size" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="12dp"
|
android:gravity="center_vertical"
|
android:orientation="horizontal">
|
|
<TextView
|
android:layout_width="120dp"
|
android:layout_height="wrap_content"
|
android:text="姓名:"
|
android:textColor="#666666"
|
android:textSize="@dimen/new_card_size" />
|
|
<TextView
|
android:id="@+id/newCard_userName"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="8dp"
|
android:textColor="#333333"
|
android:textSize="@dimen/new_card_size" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="12dp"
|
android:gravity="center_vertical"
|
android:orientation="horizontal">
|
|
<TextView
|
android:layout_width="120dp"
|
android:layout_height="wrap_content"
|
android:text="身份证号:"
|
android:textColor="#666666"
|
android:textSize="@dimen/new_card_size" />
|
|
<TextView
|
android:id="@+id/newCard_idCard"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="8dp"
|
android:textColor="#333333"
|
android:textSize="@dimen/new_card_size" />
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="12dp"
|
android:gravity="center_vertical"
|
android:orientation="horizontal">
|
|
<TextView
|
android:layout_width="120dp"
|
android:layout_height="wrap_content"
|
android:text="农户编号:"
|
android:textColor="#666666"
|
android:textSize="@dimen/new_card_size" />
|
|
<TextView
|
android:id="@+id/newCard_farmerCode"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="8dp"
|
android:textColor="#333333"
|
android:textSize="@dimen/new_card_size" />
|
</LinearLayout>
|
</LinearLayout>
|
</androidx.cardview.widget.CardView>
|
|
<androidx.cardview.widget.CardView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="16dp"
|
app:cardCornerRadius="8dp"
|
app:cardElevation="2dp">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:padding="16dp">
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="16dp"
|
android:text="费用信息"
|
android:textColor="#333333"
|
android:textSize="18sp"
|
android:textStyle="bold" />
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="12dp"
|
android:gravity="center_vertical"
|
android:orientation="horizontal">
|
|
<TextView
|
android:layout_width="120dp"
|
android:layout_height="wrap_content"
|
android:text="工本费:"
|
android:textColor="#666666"
|
android:textSize="@dimen/new_card_size" />
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:background="#FFFFFF"
|
android:orientation="vertical">
|
|
<EditText
|
android:id="@+id/newCard_rechargeAmount"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:background="@null"
|
android:hint="请输入工本费(选填)"
|
android:inputType="numberDecimal"
|
android:padding="12dp"
|
android:textColor="#333333"
|
android:textSize="@dimen/new_card_size" />
|
</LinearLayout>
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="12dp"
|
android:gravity="center_vertical"
|
android:orientation="horizontal">
|
|
<TextView
|
android:layout_width="120dp"
|
android:layout_height="wrap_content"
|
android:text="充值金额:"
|
android:textColor="#666666"
|
android:textSize="@dimen/new_card_size" />
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:background="#FFFFFF"
|
android:orientation="vertical">
|
|
<EditText
|
android:id="@+id/newCard_cardFee"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:background="@null"
|
android:hint="请输入充值金额(选填)"
|
android:inputType="numberDecimal"
|
android:padding="12dp"
|
android:textColor="#333333"
|
android:textSize="@dimen/new_card_size" />
|
</LinearLayout>
|
</LinearLayout>
|
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="12dp"
|
android:gravity="center_vertical"
|
android:orientation="horizontal">
|
|
<TextView
|
android:layout_width="120dp"
|
android:layout_height="wrap_content"
|
android:text="备注:"
|
android:textColor="#666666"
|
android:textSize="@dimen/new_card_size" />
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:background="#FFFFFF"
|
android:orientation="vertical">
|
|
<EditText
|
android:id="@+id/newCard_remark"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:background="@null"
|
android:hint="请输入备注(选填)"
|
android:padding="12dp"
|
android:textColor="#333333"
|
android:textSize="@dimen/new_card_size" />
|
</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">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:padding="16dp">
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="16dp"
|
android:text="支付方式"
|
android:textColor="#333333"
|
android:textSize="18sp"
|
android:textStyle="bold" />
|
|
<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="40dp"
|
android:layout_marginRight="15dp"
|
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="@dimen/new_card_size" />
|
|
<RadioButton
|
android:id="@+id/newCard_posPayment"
|
android:layout_width="0dp"
|
android:layout_height="40dp"
|
android:layout_marginRight="15dp"
|
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="@dimen/new_card_size" />
|
|
<RadioButton
|
android:id="@+id/newCard_bankTransfer"
|
android:layout_width="0dp"
|
android:layout_height="40dp"
|
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="@dimen/new_card_size" />
|
</RadioGroup>
|
</LinearLayout>
|
</androidx.cardview.widget.CardView>
|
</LinearLayout>
|
</ScrollView>
|
|
<TextView
|
android:id="@+id/newCard_registBtn"
|
android:layout_width="match_parent"
|
android:layout_height="56dp"
|
android:layout_margin="16dp"
|
android:background="#4285F4"
|
android:visibility="gone"
|
android:gravity="center"
|
android:text="确认开卡"
|
android:textColor="#FFFFFF"
|
android:textSize="16sp"
|
app:layout_constraintBottom_toBottomOf="parent" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|