| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <layout xmlns:android="http://schemas.android.com/apk/res/android" |
| | | xmlns:tools="http://schemas.android.com/tools" |
| | | xmlns:app="http://schemas.android.com/apk/res-auto"> |
| | | |
| | | xmlns:app="http://schemas.android.com/apk/res-auto" |
| | | xmlns:tools="http://schemas.android.com/tools"> |
| | | |
| | | <data> |
| | | |
| | | <variable |
| | | name="viewModel" |
| | | type="com.dayu.general.model.CardInfoModel" /> |
| | |
| | | android:background="@color/title_bar_bg" |
| | | android:elevation="4dp" |
| | | app:centerText="制作管理卡" |
| | | app:leftImage="@mipmap/icon_back" |
| | | tools:ignore="MissingConstraints" /> |
| | | |
| | | <LinearLayout |
| | | android:id="@+id/data_layout" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:layout_below="@+id/titleBar" |
| | | android:orientation="vertical" |
| | | android:layout_height="wrap_content"> |
| | | android:visibility="gone"> |
| | | |
| | | <LinearLayout |
| | | android:layout_width="match_parent" |
| | | android:orientation="vertical" |
| | | android:layout_height="wrap_content"> |
| | | |
| | | android:layout_height="wrap_content" |
| | | android:orientation="vertical"> |
| | | |
| | | <LinearLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | |
| | | android:layout_height="wrap_content" |
| | | android:text="卡号:" |
| | | android:textColor="#333333" |
| | | android:textSize="16sp"/> |
| | | android:textSize="16sp" /> |
| | | |
| | | <TextView |
| | | android:id="@+id/card_number_tv" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:text="@{viewModel.cardNumber}" |
| | | android:textColor="#333333" |
| | | android:textSize="16sp" |
| | | android:text="@{viewModel.cardNumber}"/> |
| | | android:textSize="16sp" /> |
| | | </LinearLayout> |
| | | |
| | | <!-- 区域号输入框 - 仅在区域表号卡时显示 --> |
| | | <LinearLayout |
| | | android:id="@+id/region_number_layout" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:orientation="horizontal" |
| | | android:padding="16dp" |
| | | android:visibility="gone"> |
| | | |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:text="区域号:" |
| | | android:textColor="#333333" |
| | | android:textSize="16sp" /> |
| | | |
| | | <EditText |
| | | android:id="@+id/region_number_et" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:background="@null" |
| | | android:hint="请输入12位数字区域号" |
| | | android:inputType="number" |
| | | android:maxLength="12" |
| | | android:text="@={viewModel.regionNumber}" |
| | | android:textSize="16sp" /> |
| | | </LinearLayout> |
| | | |
| | | <!-- 项目号输入框 - 仅在区域表号卡时显示 --> |
| | | <LinearLayout |
| | | android:id="@+id/project_number_layout" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:orientation="horizontal" |
| | | android:padding="16dp" |
| | | android:visibility="gone"> |
| | | |
| | | <TextView |
| | | android:layout_width="wrap_content" |
| | | android:layout_height="wrap_content" |
| | | android:text="项目号:" |
| | | android:textColor="#333333" |
| | | android:textSize="16sp" /> |
| | | |
| | | <EditText |
| | | android:id="@+id/project_number_et" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:background="@null" |
| | | android:hint="请输入项目号(1-255)" |
| | | android:inputType="number" |
| | | android:maxLength="3" |
| | | android:text="@={viewModel.projectNumber}" |
| | | android:textSize="16sp" /> |
| | | </LinearLayout> |
| | | |
| | | <LinearLayout |
| | |
| | | android:layout_height="wrap_content" |
| | | android:text="备注:" |
| | | android:textColor="#333333" |
| | | android:textSize="16sp"/> |
| | | android:textSize="16sp" /> |
| | | |
| | | <EditText |
| | | android:id="@+id/remark_et" |
| | |
| | | android:layout_height="wrap_content" |
| | | android:background="@null" |
| | | android:hint="请输入备注信息" |
| | | android:textSize="16sp" |
| | | android:text="@={viewModel.remark}"/> |
| | | |
| | | android:text="@={viewModel.remark}" |
| | | android:textSize="16sp" /> |
| | | </LinearLayout> |
| | | |
| | | </LinearLayout> |
| | | |
| | | </LinearLayout> |
| | | |
| | | <LinearLayout |
| | | android:id="@+id/recharge_read_LL" |
| | | |
| | | <!-- 读卡提示区域 - 全屏显示 --> |
| | | <ScrollView |
| | | android:id="@+id/scroll_read_card" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="match_parent" |
| | | android:layout_below="@+id/data_layout" |
| | | android:orientation="vertical" |
| | | android:layout_below="@+id/titleBar" |
| | | android:fillViewport="true" |
| | | android:visibility="visible"> |
| | | |
| | | <androidx.cardview.widget.CardView |
| | | <LinearLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:layout_margin="16dp" |
| | | app:cardCornerRadius="8dp" |
| | | app:cardElevation="2dp"> |
| | | android:layout_height="match_parent" |
| | | android:orientation="vertical" |
| | | android:padding="16dp"> |
| | | |
| | | <LinearLayout |
| | | android:id="@+id/card_read_LL" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:orientation="vertical" |
| | | android:padding="16dp"> |
| | | android:layout_height="match_parent" |
| | | android:gravity="center" |
| | | android:orientation="vertical"> |
| | | |
| | | <TextView |
| | | <androidx.cardview.widget.CardView |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:layout_height="match_parent" |
| | | android:layout_marginBottom="16dp" |
| | | android:gravity="center" |
| | | android:text="请将卡贴在设备上进行读卡" |
| | | android:textColor="#333333" |
| | | android:textSize="@dimen/text_size" |
| | | android:textStyle="bold" /> |
| | | app:cardCornerRadius="8dp" |
| | | app:cardElevation="2dp"> |
| | | |
| | | <ImageView |
| | | android:layout_width="200dp" |
| | | android:layout_height="200dp" |
| | | android:layout_gravity="center" |
| | | android:scaleType="fitCenter" |
| | | android:src="@mipmap/nfc_write" /> |
| | | <RelativeLayout |
| | | android:layout_width="match_parent" |
| | | android:layout_height="match_parent" |
| | | android:padding="16dp"> |
| | | |
| | | <TextView |
| | | android:id="@+id/tv_title" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:layout_marginBottom="100dp" |
| | | android:gravity="center" |
| | | android:text="制作管理卡" |
| | | android:layout_marginTop="20dp" |
| | | android:textColor="@color/base_blue_bg" |
| | | android:textSize="@dimen/big_text_size" |
| | | android:textStyle="bold" /> |
| | | |
| | | <TextView |
| | | android:id="@+id/tv_subtitle" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:layout_below="@+id/tv_title" |
| | | android:layout_marginBottom="20dp" |
| | | android:gravity="center" |
| | | android:text="请将新卡贴在设备上进行读取" |
| | | android:textColor="#333333" |
| | | android:textSize="@dimen/text_size" |
| | | android:textStyle="bold" /> |
| | | |
| | | <ImageView |
| | | android:id="@+id/iv_nfc" |
| | | android:layout_width="120dp" |
| | | android:layout_height="120dp" |
| | | android:layout_below="@+id/tv_subtitle" |
| | | android:layout_centerHorizontal="true" |
| | | android:layout_marginBottom="20dp" |
| | | android:scaleType="fitCenter" |
| | | android:src="@mipmap/nfc_write" /> |
| | | |
| | | <TextView |
| | | android:id="@+id/tv_tip" |
| | | android:layout_width="match_parent" |
| | | android:layout_height="wrap_content" |
| | | android:layout_below="@+id/iv_nfc" |
| | | android:gravity="center" |
| | | android:text="读取新卡后将显示原卡信息进行制作管理卡" |
| | | android:textColor="#666666" |
| | | android:textSize="@dimen/new_card_size" /> |
| | | |
| | | </RelativeLayout> |
| | | </androidx.cardview.widget.CardView> |
| | | </LinearLayout> |
| | | </androidx.cardview.widget.CardView> |
| | | </LinearLayout> |
| | | |
| | | </LinearLayout> |
| | | </ScrollView> |
| | | <TextView |
| | | android:id="@+id/btn_next" |
| | | 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:gravity="center" |
| | | android:visibility="gone" |
| | | android:text="下一步" |
| | | android:textColor="#FFFFFF" |
| | | android:textSize="16sp" /> |
| | | |
| | | </RelativeLayout> |
| | | </layout> |