<?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">
|
|
<data>
|
<variable
|
name="viewModel"
|
type="com.dayu.general.model.CardInfoModel" />
|
</data>
|
|
<RelativeLayout
|
android:layout_width="match_parent"
|
android:layout_height="match_parent">
|
|
<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="制作管理卡"
|
tools:ignore="MissingConstraints" />
|
|
<LinearLayout
|
android:id="@+id/data_layout"
|
android:layout_width="match_parent"
|
android:layout_below="@+id/titleBar"
|
android:orientation="vertical"
|
android:layout_height="wrap_content">
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:orientation="vertical"
|
android:layout_height="wrap_content">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal"
|
android:padding="16dp">
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="卡号:"
|
android:textColor="#333333"
|
android:textSize="16sp"/>
|
|
<TextView
|
android:id="@+id/card_number_tv"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:textColor="#333333"
|
android:textSize="16sp"
|
android:text="@{viewModel.cardNumber}"/>
|
</LinearLayout>
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal"
|
android:padding="16dp">
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="备注:"
|
android:textColor="#333333"
|
android:textSize="16sp"/>
|
|
<EditText
|
android:id="@+id/remark_et"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:background="@null"
|
android:hint="请输入备注信息"
|
android:textSize="16sp"
|
android:text="@={viewModel.remark}"/>
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
<LinearLayout
|
android:id="@+id/recharge_read_LL"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:layout_below="@+id/data_layout"
|
android:orientation="vertical"
|
android:visibility="visible">
|
|
<androidx.cardview.widget.CardView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_margin="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="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginBottom="16dp"
|
android:gravity="center"
|
android:text="请将卡贴在设备上进行读卡"
|
android:textColor="#333333"
|
android:textSize="@dimen/text_size"
|
android:textStyle="bold" />
|
|
<ImageView
|
android:layout_width="200dp"
|
android:layout_height="200dp"
|
android:layout_gravity="center"
|
android:scaleType="fitCenter"
|
android:src="@mipmap/nfc_write" />
|
</LinearLayout>
|
</androidx.cardview.widget.CardView>
|
</LinearLayout>
|
</RelativeLayout>
|
</layout>
|