| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| | | <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"> |
| | | android:background="@color/base_list_bg"> |
| | | |
| | | <com.dayu.baselibrary.view.TitleBar |
| | | android:id="@+id/titleBar" |
| | |
| | | android:layout_height="@dimen/dimen_title_height" |
| | | android:background="@color/title_bar_bg" |
| | | android:elevation="4dp" |
| | | app:centerText="新卡开户" |
| | | app:leftImage="@mipmap/icon_back" /> |
| | | 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="visible" |
| | | 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"> |
| | | |
| | | <FrameLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="match_parent"> |
| | | |
| | | <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="将进行初始化卡片\n耗时较长请不要移动卡片" |
| | | android:textColor="@color/base_blue_bg" |
| | | android:textSize="18sp" |
| | | android:layout_marginTop="20dp" |
| | | 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> |
| | | |
| | | <RelativeLayout |
| | | android:id="@+id/loadingContainer" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="match_parent" |
| | | android:background="#80000000" |
| | | android:visibility="gone"> |
| | | |
| | | <com.pnikosis.materialishprogress.ProgressWheel |
| | | android:id="@+id/nfcProgressWheel" |
| | | android:layout_width="100dp" |
| | | android:layout_height="100dp" |
| | | android:layout_centerInParent="true" |
| | | app:matProg_barColor="@color/base_blue_bg" |
| | | app:matProg_progressIndeterminate="true" |
| | | app:matProg_barWidth="8dp" |
| | | app:matProg_rimColor="#33000000" |
| | | app:matProg_rimWidth="8dp" |
| | | app:matProg_spinSpeed="0.5"/> |
| | | |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:layout_below="@id/nfcProgressWheel" |
| | | android:layout_centerHorizontal="true" |
| | | android:layout_marginTop="12dp" |
| | | android:text="正在处理NFC卡片..." |
| | | android:textColor="#FFFFFF" |
| | | android:textSize="16sp"/> |
| | | </RelativeLayout> |
| | | </FrameLayout> |
| | | </androidx.cardview.widget.CardView> |
| | | |
| | | <ScrollView |
| | | android:id="@+id/center_scroll" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="match_parent" |
| | | android:layout_above="@+id/newCard_registBtn" |
| | | android:layout_below="@+id/titleBar" |
| | | android:layout_height="0dp" |
| | | android:fillViewport="true" |
| | | android:scrollbars="none"> |
| | | 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"> |
| | | android:paddingBottom="16dp" |
| | | android:paddingLeft="16dp" |
| | | android:paddingRight="16dp" |
| | | android:paddingTop="10dp"> |
| | | |
| | | <androidx.cardview.widget.CardView |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:layout_marginBottom="16dp" |
| | | android:layout_marginBottom="10dp" |
| | | 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" |
| | |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:layout_marginBottom="16dp" |
| | | android:layout_marginBottom="10dp" |
| | | android:text="基本信息" |
| | | android:textColor="#333333" |
| | | android:textSize="18sp" |
| | |
| | | <LinearLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:layout_marginBottom="16dp" |
| | | android:layout_marginBottom="6dp" |
| | | android:gravity="center_vertical" |
| | | android:orientation="horizontal"> |
| | | |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_width="105dp" |
| | | android:layout_height="wrap_content" |
| | | android:text="@string/eq_no" |
| | | android:text="卡号:" |
| | | android:textColor="#666666" |
| | | android:textSize="@dimen/new_card_size" /> |
| | | |
| | |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:layout_marginStart="8dp" |
| | | android:inputType="number" |
| | | android:textColor="#333333" |
| | | android:textSize="@dimen/new_card_size" /> |
| | | </LinearLayout> |
| | |
| | | <LinearLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:layout_marginBottom="16dp" |
| | | android:layout_marginBottom="6dp" |
| | | android:gravity="center_vertical" |
| | | android:orientation="horizontal"> |
| | | |
| | | <TextView |
| | | android:layout_width="80dp" |
| | | android:layout_width="105dp" |
| | | android:layout_height="wrap_content" |
| | | android:text="姓名" |
| | | android:text="姓名:" |
| | | android:textColor="#666666" |
| | | android:textSize="@dimen/new_card_size" /> |
| | | |
| | | <LinearLayout |
| | | android:layout_width="0dp" |
| | | <TextView |
| | | android:id="@+id/newCard_userName" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:layout_weight="1" |
| | | android:background="#FFFFFF" |
| | | android:orientation="vertical"> |
| | | |
| | | <EditText |
| | | android:id="@+id/newCard_name" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:background="@null" |
| | | android:hint="请输入姓名" |
| | | android:inputType="textPersonName" |
| | | android:padding="12dp" |
| | | android:textSize="@dimen/new_card_size" /> |
| | | </LinearLayout> |
| | | |
| | | <ImageView |
| | | android:id="@+id/newCard_scanBtn" |
| | | android:layout_width="45dp" |
| | | android:layout_height="45dp" |
| | | android:background="?attr/selectableItemBackgroundBorderless" |
| | | android:padding="10dp" |
| | | android:src="@mipmap/icon_scan" |
| | | /> |
| | | 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="16dp" |
| | | android:layout_marginBottom="6dp" |
| | | android:gravity="center_vertical" |
| | | android:orientation="horizontal"> |
| | | |
| | | <TextView |
| | | android:layout_width="80dp" |
| | | android:layout_width="105dp" |
| | | android:layout_height="wrap_content" |
| | | android:text="身份证号" |
| | | android:text="身份证号:" |
| | | android:textColor="#666666" |
| | | android:textSize="@dimen/new_card_size" /> |
| | | |
| | | <LinearLayout |
| | | <TextView |
| | | android:id="@+id/newCard_idCard" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:background="#FFFFFF" |
| | | android:orientation="vertical"> |
| | | |
| | | <EditText |
| | | android:id="@+id/newCard_id" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:background="@null" |
| | | android:digits="0123456789Xx" |
| | | android:hint="请输入身份证号" |
| | | android:inputType="text" |
| | | android:maxLength="18" |
| | | android:padding="12dp" |
| | | android:textSize="@dimen/new_card_size" /> |
| | | </LinearLayout> |
| | | android:layout_marginStart="8dp" |
| | | android:textColor="#333333" |
| | | android:textSize="@dimen/new_card_size" /> |
| | | </LinearLayout> |
| | | |
| | | <TextView |
| | | android:id="@+id/newCard_idTip" |
| | | android:layout_width="wrap_content" |
| | | <LinearLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:layout_marginBottom="16dp" |
| | | android:text="扫描后请核对身份信息无误" |
| | | android:textColor="#FF4500" |
| | | android:visibility="gone" /> |
| | | android:layout_marginBottom="5dp" |
| | | android:gravity="center_vertical" |
| | | android:orientation="horizontal"> |
| | | |
| | | <TextView |
| | | android:layout_width="105dp" |
| | | 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" |
| | | android:layout_marginBottom="10dp" |
| | | app:cardCornerRadius="8dp" |
| | | app:cardElevation="2dp"> |
| | | |
| | |
| | | <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="16dp" |
| | | android:gravity="center_vertical" |
| | | android:orientation="horizontal"> |
| | | |
| | | <TextView |
| | | android:layout_width="80dp" |
| | | 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_phone" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:background="@null" |
| | | android:hint="请输入手机号码" |
| | | android:inputType="phone" |
| | | android:maxLength="11" |
| | | android:padding="12dp" |
| | | 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:layout_marginBottom="10dp" |
| | | 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="80dp" |
| | | android:layout_width="105dp" |
| | | android:layout_height="wrap_content" |
| | | android:text="工本费(元)" |
| | | 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"> |
| | | android:background="@drawable/edit_text_bg_selector" |
| | | android:orientation="horizontal" |
| | | android:gravity="center_vertical" |
| | | android:paddingStart="10dp" |
| | | android:paddingEnd="10dp" |
| | | android:paddingTop="8dp" |
| | | android:paddingBottom="8dp"> |
| | | |
| | | <EditText |
| | | android:id="@+id/newCard_morny" |
| | | android:id="@+id/newCard_cardFee" |
| | | android:layout_width="0dp" |
| | | android:layout_weight="1" |
| | | android:layout_height="wrap_content" |
| | | android:background="@null" |
| | | android:hint="请输入工本费(选填)" |
| | | android:inputType="numberDecimal" |
| | | android:textColor="#333333" |
| | | android:textColorHint="#BBBBBB" |
| | | android:textSize="@dimen/new_card_size" /> |
| | | |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:text="元" |
| | | android:textColor="#666666" |
| | | 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="105dp" |
| | | 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="@drawable/edit_text_bg_selector" |
| | | android:orientation="horizontal" |
| | | android:gravity="center_vertical" |
| | | android:paddingStart="10dp" |
| | | android:paddingEnd="10dp" |
| | | android:paddingTop="8dp" |
| | | android:paddingBottom="8dp"> |
| | | |
| | | <EditText |
| | | android:id="@+id/newCard_rechargeAmount" |
| | | android:layout_width="0dp" |
| | | android:layout_weight="1" |
| | | android:layout_height="wrap_content" |
| | | android:background="@null" |
| | | android:hint="请输入充值金额(选填)" |
| | | android:inputType="numberDecimal" |
| | | android:textColor="#333333" |
| | | android:textColorHint="#BBBBBB" |
| | | android:textSize="@dimen/new_card_size" /> |
| | | |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:text="元" |
| | | android:textColor="#666666" |
| | | android:textSize="@dimen/new_card_size" /> |
| | | </LinearLayout> |
| | | </LinearLayout> |
| | | |
| | | |
| | | |
| | | <LinearLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:layout_marginBottom="5dp" |
| | | android:gravity="center_vertical" |
| | | android:orientation="horizontal"> |
| | | |
| | | <TextView |
| | | android:layout_width="105dp" |
| | | 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="@drawable/edit_text_bg_selector" |
| | | android:orientation="vertical" |
| | | android:paddingStart="10dp" |
| | | android:paddingEnd="10dp" |
| | | android:paddingTop="8dp" |
| | | android:paddingBottom="8dp"> |
| | | |
| | | <EditText |
| | | android:id="@+id/newCard_remark" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:background="@null" |
| | | android:hint="请输入工本费" |
| | | android:inputType="numberDecimal" |
| | | android:padding="12dp" |
| | | android:hint="请输入备注(选填)" |
| | | android:textColor="#333333" |
| | | android:textColorHint="#BBBBBB" |
| | | android:textSize="@dimen/new_card_size" /> |
| | | </LinearLayout> |
| | | </LinearLayout> |
| | | </LinearLayout> |
| | | </androidx.cardview.widget.CardView> |
| | | |
| | | <!-- 隐藏的水权内水量部分 --> |
| | | <LinearLayout |
| | | <androidx.cardview.widget.CardView |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:visibility="gone"> |
| | | app:cardCornerRadius="8dp" |
| | | app:cardElevation="2dp"> |
| | | |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:text="水权内水量:" |
| | | android:textSize="@dimen/new_card_size" /> |
| | | |
| | | <EditText |
| | | android:id="@+id/newCard_water" |
| | | <LinearLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:inputType="number" |
| | | android:maxLength="5" |
| | | android:textSize="@dimen/new_card_size" /> |
| | | </LinearLayout> |
| | | android:orientation="vertical" |
| | | android:padding="16dp"> |
| | | |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:layout_marginBottom="10dp" |
| | | 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,移除固定的RadioButton --> |
| | | </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_alignParentBottom="true" |
| | | android:layout_marginStart="16dp" |
| | | android:layout_marginEnd="16dp" |
| | | android:layout_marginBottom="16dp" |
| | | android:background="#4285F4" |
| | | android:background="@color/bottom_color" |
| | | android:gravity="center" |
| | | android:text="确认开户" |
| | | android:text="确认开卡" |
| | | android:textColor="#FFFFFF" |
| | | android:textSize="16sp" /> |
| | | </RelativeLayout> |
| | | android:textSize="16sp" |
| | | android:visibility="gone" |
| | | app:layout_constraintBottom_toBottomOf="parent" |
| | | app:layout_constraintEnd_toEndOf="parent" |
| | | app:layout_constraintStart_toStartOf="parent" /> |
| | | |
| | | </androidx.constraintlayout.widget.ConstraintLayout> |