From 899cb6ce779b24a659ec3515dd3fb1cd1afef7d2 Mon Sep 17 00:00:00 2001
From: zuojincheng <lf_zuo@163.com>
Date: 星期二, 24 六月 2025 14:02:46 +0800
Subject: [PATCH] feat(card): 增加区域表号卡制作功能

---
 generallibrary/src/main/res/layout/activity_manager_read.xml |  127 +++++++++++++++++++++++++++++++++---------
 1 files changed, 100 insertions(+), 27 deletions(-)

diff --git a/generallibrary/src/main/res/layout/activity_manager_read.xml b/generallibrary/src/main/res/layout/activity_manager_read.xml
index 3ecb3e6..a202f03 100644
--- a/generallibrary/src/main/res/layout/activity_manager_read.xml
+++ b/generallibrary/src/main/res/layout/activity_manager_read.xml
@@ -21,6 +21,7 @@
             android:background="@color/title_bar_bg"
             android:elevation="4dp"
             app:centerText="鍒朵綔绠$悊鍗�"
+            app:leftImage="@mipmap/icon_back"
             tools:ignore="MissingConstraints" />
 
         <LinearLayout
@@ -58,6 +59,34 @@
                         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"
@@ -86,47 +115,91 @@
 
         </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"

--
Gitblit v1.8.0