From 14b15539a8fbbce1145197993e0c062400174ef1 Mon Sep 17 00:00:00 2001
From: zuoxiao <lf_zuo@163.com>
Date: 星期四, 26 六月 2025 16:51:12 +0800
Subject: [PATCH] docs(baselibrary): 更新 NativeNfcReadHelper 类文档

---
 generallibrary/src/main/res/layout/activity_card_replace.xml |  332 ++++++++++++++++++++++++++++++-------------------------
 1 files changed, 182 insertions(+), 150 deletions(-)

diff --git a/generallibrary/src/main/res/layout/activity_card_replace.xml b/generallibrary/src/main/res/layout/activity_card_replace.xml
index 3d468ed..1aa441b 100644
--- a/generallibrary/src/main/res/layout/activity_card_replace.xml
+++ b/generallibrary/src/main/res/layout/activity_card_replace.xml
@@ -27,7 +27,7 @@
             android:layout_width="match_parent"
             android:layout_height="match_parent"
             android:orientation="vertical"
-            android:padding="16dp">
+            android:padding="12dp">
 
             <LinearLayout
                 android:id="@+id/card_read_LL"
@@ -39,25 +39,25 @@
                 <androidx.cardview.widget.CardView
                     android:layout_width="match_parent"
                     android:layout_height="match_parent"
-                    android:layout_marginBottom="16dp"
-                    app:cardCornerRadius="8dp"
+                    android:layout_marginBottom="12dp"
+                    app:cardCornerRadius="6dp"
                     app:cardElevation="2dp">
 
                     <RelativeLayout
                         android:layout_width="match_parent"
                         android:layout_height="match_parent"
-                        android:padding="16dp">
+                        android:padding="12dp">
 
                         <TextView
                             android:id="@+id/tv_title"
                             android:layout_width="match_parent"
                             android:layout_height="wrap_content"
-                            android:layout_marginBottom="100dp"
+                            android:layout_marginBottom="60dp"
                             android:gravity="center"
                             android:text="琛ュ崱鎿嶄綔"
-                            android:layout_marginTop="20dp"
+                            android:layout_marginTop="16dp"
                             android:textColor="@color/base_blue_bg"
-                            android:textSize="@dimen/big_text_size"
+                            android:textSize="18sp"
                             android:textStyle="bold" />
 
                         <TextView
@@ -65,20 +65,20 @@
                             android:layout_width="match_parent"
                             android:layout_height="wrap_content"
                             android:layout_below="@+id/tv_title"
-                            android:layout_marginBottom="20dp"
+                            android:layout_marginBottom="16dp"
                             android:gravity="center"
                             android:text="璇峰皢鏂板崱璐村湪璁惧涓婅繘琛岃鍙�"
                             android:textColor="#333333"
-                            android:textSize="@dimen/text_size"
+                            android:textSize="16sp"
                             android:textStyle="bold" />
 
                         <ImageView
                             android:id="@+id/iv_nfc"
-                            android:layout_width="120dp"
-                            android:layout_height="120dp"
+                            android:layout_width="80dp"
+                            android:layout_height="80dp"
                             android:layout_below="@+id/tv_subtitle"
                             android:layout_centerHorizontal="true"
-                            android:layout_marginBottom="20dp"
+                            android:layout_marginBottom="16dp"
                             android:scaleType="fitCenter"
                             android:src="@mipmap/nfc_write" />
 
@@ -90,7 +90,7 @@
                             android:gravity="center"
                             android:text="璇诲彇鏂板崱鍚庡皢鏄剧ず鍘熷崱淇℃伅杩涜琛ュ崱鎿嶄綔"
                             android:textColor="#666666"
-                            android:textSize="@dimen/new_card_size" />
+                            android:textSize="14sp" />
 
                     </RelativeLayout>
                 </androidx.cardview.widget.CardView>
@@ -114,20 +114,19 @@
             android:layout_height="0dp"
             android:layout_weight="1"
             android:fillViewport="true"
-            android:padding="12dp">
+            android:padding="10dp">
 
             <LinearLayout
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
                 android:orientation="vertical">
 
-                <!-- 褰撳墠鍗″湴鍧�鏄剧ず鍖哄煙 -->
+                <!-- 鍗$墖淇℃伅鍖哄煙 -->
                 <androidx.cardview.widget.CardView
                     android:layout_width="match_parent"
                     android:layout_height="wrap_content"
-                    android:layout_marginBottom="12dp"
                     app:cardCornerRadius="8dp"
-                    app:cardElevation="2dp">
+                    app:cardElevation="4dp">
 
                     <LinearLayout
                         android:layout_width="match_parent"
@@ -139,63 +138,65 @@
                             android:layout_width="match_parent"
                             android:layout_height="wrap_content"
                             android:layout_marginBottom="12dp"
-                            android:text="鍗″彿"
+                            android:text="鍗$墖淇℃伅"
                             android:textColor="@color/base_blue_bg"
-                            android:textSize="18sp"
+                            android:textSize="20sp"
                             android:textStyle="bold" />
 
-                        <TextView
-                            android:id="@+id/tv_current_card_address"
-                            android:layout_width="match_parent"
-                            android:layout_height="wrap_content"
-                            android:background="#F5F5F5"
-                            android:padding="12dp"
-                            android:text="--"
-                            android:textColor="#333333"
-                            android:textSize="16sp"
-                            android:textIsSelectable="true" />
-
-                    </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="match_parent"
-                            android:layout_height="wrap_content"
-                            android:layout_marginBottom="12dp"
-                            android:text="鏃у崱淇℃伅"
-                            android:textColor="@color/base_blue_bg"
-                            android:textSize="18sp"
-                            android:textStyle="bold" />
-
-                        <!-- 鎸佸崱浜� -->
+                        <!-- 鏂板崱鍗″湴鍧� -->
                         <LinearLayout
                             android:layout_width="match_parent"
                             android:layout_height="wrap_content"
-                            android:layout_marginBottom="1dp"
-                            android:background="#F8F9FA"
+                            android:layout_marginBottom="2dp"
+                            android:background="#E3F2FD"
                             android:gravity="center_vertical"
                             android:orientation="horizontal"
                             android:padding="12dp">
 
                             <TextView
-                                android:layout_width="100dp"
+                                android:layout_width="wrap_content"
+                                android:layout_height="wrap_content"
+                                android:text="鏂板崱鍗″湴鍧�锛�"
+                                android:textColor="#1976D2"
+                                android:textSize="16sp"
+                                android:textStyle="bold" />
+
+                            <TextView
+                                android:id="@+id/tv_current_card_address"
+                                android:layout_width="0dp"
+                                android:layout_height="wrap_content"
+                                android:layout_weight="1"
+                                android:background="#FFFFFF"
+                                android:padding="10dp"
+                                android:text="--"
+                                android:textColor="#333333"
+                                android:textSize="15sp"
+                                android:textIsSelectable="true" />
+                        </LinearLayout>
+                        
+                        <View
+                            android:layout_width="match_parent"
+                            android:layout_height="2dp"
+                            android:layout_marginTop="4dp"
+                            android:layout_marginBottom="4dp"
+                            android:background="@color/base_blue_bg" />
+                            
+                        <!-- 鎸佸崱浜� -->
+                        <LinearLayout
+                            android:layout_width="match_parent"
+                            android:layout_height="wrap_content"
+                            android:layout_marginBottom="2dp"
+                            android:background="#F8F9FB"
+                            android:gravity="center_vertical"
+                            android:orientation="horizontal"
+                            android:padding="12dp">
+
+                            <TextView
+                                android:layout_width="85dp"
                                 android:layout_height="wrap_content"
                                 android:text="鎸佸崱浜猴細"
-                                android:textColor="#333333"
-                                android:textSize="16sp"
+                                android:textColor="#37474F"
+                                android:textSize="15sp"
                                 android:textStyle="bold" />
 
                             <TextView
@@ -204,26 +205,26 @@
                                 android:layout_height="wrap_content"
                                 android:layout_weight="1"
                                 android:text="--"
-                                android:textColor="#666666"
-                                android:textSize="16sp" />
+                                android:textColor="#546E7A"
+                                android:textSize="15sp" />
                         </LinearLayout>
 
                         <!-- 鍗$墖鐘舵�� -->
                         <LinearLayout
                             android:layout_width="match_parent"
                             android:layout_height="wrap_content"
-                            android:layout_marginBottom="1dp"
+                            android:layout_marginBottom="2dp"
                             android:background="#FFFFFF"
                             android:gravity="center_vertical"
                             android:orientation="horizontal"
                             android:padding="12dp">
 
                             <TextView
-                                android:layout_width="100dp"
+                                android:layout_width="85dp"
                                 android:layout_height="wrap_content"
                                 android:text="鍗$墖鐘舵�侊細"
-                                android:textColor="#333333"
-                                android:textSize="16sp"
+                                android:textColor="#37474F"
+                                android:textSize="15sp"
                                 android:textStyle="bold" />
 
                             <TextView
@@ -233,53 +234,82 @@
                                 android:layout_weight="1"
                                 android:text="姝e父"
                                 android:textColor="#4CAF50"
-                                android:textSize="16sp" />
+                                android:textSize="15sp"
+                                android:textStyle="bold" />
                         </LinearLayout>
 
-                        <!-- 鍗″唴浣欓 -->
+                        <!-- 鍗″彿 -->
                         <LinearLayout
                             android:layout_width="match_parent"
                             android:layout_height="wrap_content"
-                            android:layout_marginBottom="1dp"
-                            android:background="#F8F9FA"
+                            android:layout_marginBottom="2dp"
+                            android:background="#F8F9FB"
                             android:gravity="center_vertical"
                             android:orientation="horizontal"
                             android:padding="12dp">
 
                             <TextView
-                                android:layout_width="100dp"
+                                android:layout_width="85dp"
                                 android:layout_height="wrap_content"
-                                android:text="鍗″唴浣欓锛�"
-                                android:textColor="#333333"
-                                android:textSize="16sp"
+                                android:text="鍗″彿锛�"
+                                android:textColor="#37474F"
+                                android:textSize="15sp"
                                 android:textStyle="bold" />
 
                             <TextView
-                                android:id="@+id/tv_card_balance"
+                                android:id="@+id/tv_card_number"
                                 android:layout_width="0dp"
                                 android:layout_height="wrap_content"
                                 android:layout_weight="1"
-                                android:text="0.00鍏�"
-                                android:textColor="#FF6B35"
-                                android:textSize="16sp"
-                                android:textStyle="bold" />
+                                android:text="--"
+                                android:textColor="#546E7A"
+                                android:textSize="15sp" />
                         </LinearLayout>
 
-                        <!-- 鎵嬫満鍙� -->
+                        <!-- 瀹㈡埛缂栧彿 -->
                         <LinearLayout
                             android:layout_width="match_parent"
                             android:layout_height="wrap_content"
+                            android:layout_marginBottom="2dp"
                             android:background="#FFFFFF"
                             android:gravity="center_vertical"
                             android:orientation="horizontal"
                             android:padding="12dp">
 
                             <TextView
-                                android:layout_width="100dp"
+                                android:layout_width="85dp"
+                                android:layout_height="wrap_content"
+                                android:text="瀹㈡埛缂栧彿锛�"
+                                android:textColor="#37474F"
+                                android:textSize="15sp"
+                                android:textStyle="bold" />
+
+                            <TextView
+                                android:id="@+id/tv_customer_id"
+                                android:layout_width="0dp"
+                                android:layout_height="wrap_content"
+                                android:layout_weight="1"
+                                android:text="--"
+                                android:textColor="#546E7A"
+                                android:textSize="15sp" />
+                        </LinearLayout>
+
+                        <!-- 鎵嬫満鍙� -->
+                        <LinearLayout
+                            android:layout_width="match_parent"
+                            android:layout_height="wrap_content"
+                            android:layout_marginBottom="2dp"
+                            android:background="#F8F9FB"
+                            android:gravity="center_vertical"
+                            android:orientation="horizontal"
+                            android:padding="12dp">
+
+                            <TextView
+                                android:layout_width="85dp"
                                 android:layout_height="wrap_content"
                                 android:text="鎵嬫満鍙凤細"
-                                android:textColor="#333333"
-                                android:textSize="16sp"
+                                android:textColor="#37474F"
+                                android:textSize="15sp"
                                 android:textStyle="bold" />
 
                             <TextView
@@ -288,8 +318,37 @@
                                 android:layout_height="wrap_content"
                                 android:layout_weight="1"
                                 android:text="--"
-                                android:textColor="#666666"
-                                android:textSize="16sp" />
+                                android:textColor="#546E7A"
+                                android:textSize="15sp" />
+                        </LinearLayout>
+                        
+                        <!-- 鍗″唴浣欓 -->
+                        <LinearLayout
+                            android:layout_width="match_parent"
+                            android:layout_height="wrap_content"
+                            android:layout_marginBottom="2dp"
+                            android:background="#FFF8E1"
+                            android:gravity="center_vertical"
+                            android:orientation="horizontal"
+                            android:padding="12dp">
+
+                            <TextView
+                                android:layout_width="85dp"
+                                android:layout_height="wrap_content"
+                                android:text="鍗″唴浣欓锛�"
+                                android:textColor="#37474F"
+                                android:textSize="15sp"
+                                android:textStyle="bold" />
+
+                            <TextView
+                                android:id="@+id/tv_card_balance"
+                                android:layout_width="0dp"
+                                android:layout_height="wrap_content"
+                                android:layout_weight="1"
+                                android:text="0.00鍏�"
+                                android:textColor="#FF8F00"
+                                android:textSize="17sp"
+                                android:textStyle="bold" />
                         </LinearLayout>
 
                     </LinearLayout>
@@ -308,79 +367,21 @@
         android:background="#FFFFFF"
         android:elevation="4dp"
         android:orientation="vertical"
-        android:padding="16dp"
+        android:padding="12dp"
         android:visibility="gone">
-
-        <!-- 鏀粯鏂瑰紡閫夋嫨鍖哄煙 -->
-        <LinearLayout
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:orientation="vertical"
-            android:layout_marginBottom="16dp">
-
-            <TextView
-                android:layout_width="wrap_content"
-                android:layout_height="wrap_content"
-                android:layout_marginBottom="8dp"
-                android:text="鏀粯鏂瑰紡"
-                android:textColor="#333333"
-                android:textSize="16sp"
-                android:textStyle="bold" />
-
-            <RadioGroup
-                android:id="@+id/payment_method_group"
-                android:layout_width="match_parent"
-                android:layout_height="wrap_content"
-                android:orientation="horizontal">
-                <!-- 鏀粯鏂瑰紡RadioButton灏嗗姩鎬佹坊鍔� -->
-            </RadioGroup>
-
-        </LinearLayout>
 
         <!-- 宸ユ湰璐瑰拰杩斿洖閲戦杈撳叆鍖哄煙 -->
         <LinearLayout
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:orientation="horizontal"
-            android:layout_marginBottom="16dp">
-
-            <!-- 宸ユ湰璐硅緭鍏� -->
-            <LinearLayout
-                android:layout_width="0dp"
-                android:layout_height="wrap_content"
-                android:layout_weight="1"
-                android:layout_marginEnd="8dp"
-                android:orientation="vertical">
-
-                <TextView
-                    android:layout_width="wrap_content"
-                    android:layout_height="wrap_content"
-                    android:layout_marginBottom="6dp"
-                    android:text="宸ユ湰璐癸紙鍏冿級"
-                    android:textColor="#333333"
-                    android:textSize="14sp"
-                    android:textStyle="bold" />
-
-                <EditText
-                    android:id="@+id/et_card_cost"
-                    android:layout_width="match_parent"
-                    android:layout_height="48dp"
-                    android:background="@drawable/edit_text_bg"
-                    android:hint="宸ユ湰璐�"
-                    android:inputType="numberDecimal"
-                    android:padding="12dp"
-                    android:text=""
-                    android:textColor="#333333"
-                    android:textColorHint="#999999"
-                    android:textSize="16sp" />
-            </LinearLayout>
-
+            android:layout_marginBottom="12dp">
             <!-- 杩斿洖閲戦杈撳叆 -->
             <LinearLayout
                 android:layout_width="0dp"
                 android:layout_height="wrap_content"
                 android:layout_weight="1"
-                android:layout_marginStart="8dp"
+                android:layout_marginEnd="8dp"
                 android:orientation="vertical">
 
                 <TextView
@@ -395,12 +396,43 @@
                 <EditText
                     android:id="@+id/et_return_amount"
                     android:layout_width="match_parent"
-                    android:layout_height="48dp"
+                    android:layout_height="44dp"
                     android:background="@drawable/edit_text_bg"
                     android:hint="杩斿洖閲戦"
                     android:inputType="numberDecimal"
                     android:padding="12dp"
-                    android:text="0"
+                    android:text=""
+                    android:textColor="#333333"
+                    android:textColorHint="#999999"
+                    android:textSize="16sp" />
+            </LinearLayout>
+
+            <!-- 宸ユ湰璐硅緭鍏� -->
+            <LinearLayout
+                android:layout_width="0dp"
+                android:layout_height="wrap_content"
+                android:layout_weight="1"
+                android:layout_marginStart="8dp"
+                android:orientation="vertical">
+
+                <TextView
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    android:layout_marginBottom="6dp"
+                    android:text="宸ユ湰璐癸紙鍏冿級"
+                    android:textColor="#333333"
+                    android:textSize="14sp"
+                    android:textStyle="bold" />
+
+                <EditText
+                    android:id="@+id/et_card_cost"
+                    android:layout_width="match_parent"
+                    android:layout_height="44dp"
+                    android:background="@drawable/edit_text_bg"
+                    android:hint="宸ユ湰璐�"
+                    android:inputType="numberDecimal"
+                    android:padding="12dp"
+                    android:text=""
                     android:textColor="#333333"
                     android:textColorHint="#999999"
                     android:textSize="16sp" />
@@ -416,7 +448,7 @@
             android:background="@drawable/button_blue_bg"
             android:text="纭琛ュ崱"
             android:textColor="#FFFFFF"
-            android:textSize="@dimen/big_text_size"
+            android:textSize="18sp"
             android:textStyle="bold" />
 
     </LinearLayout>

--
Gitblit v1.8.0