左晓为主开发手持机充值管理机
zuojincheng
9 小时以前 899cb6ce779b24a659ec3515dd3fb1cd1afef7d2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
<?xml version="1.0" encoding="utf-8"?>
<layout 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">
 
    <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="制作管理卡"
            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:visibility="gone">
 
            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical">
 
                <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:text="@{viewModel.cardNumber}"
                        android:textColor="#333333"
                        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: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:text="@={viewModel.remark}"
                        android:textSize="16sp" />
                </LinearLayout>
 
            </LinearLayout>
 
        </LinearLayout>
 
 
        <!-- 读卡提示区域 - 全屏显示 -->
        <ScrollView
            android:id="@+id/scroll_read_card"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_below="@+id/titleBar"
            android:fillViewport="true"
            android:visibility="visible">
 
            <LinearLayout
                android:layout_width="match_parent"
                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="match_parent"
                    android:gravity="center"
                    android:orientation="vertical">
 
                    <androidx.cardview.widget.CardView
                        android:layout_width="match_parent"
                        android:layout_height="match_parent"
                        android:layout_marginBottom="16dp"
                        app:cardCornerRadius="8dp"
                        app:cardElevation="2dp">
 
                        <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>
 
            </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>