From cece79bf75a9b672b33b772acffca209eecfc8f2 Mon Sep 17 00:00:00 2001 From: zuoxiao <lf_zuo@163.com> Date: 星期四, 26 六月 2025 08:27:25 +0800 Subject: [PATCH] refactor(generallibrary):优化补卡界面布局和样式- 调整了卡片信息展示区域的样式,包括背景色、文字颜色等 - 优化了输入区域的布局结构,减小了控件间距和尺寸- 更新了确认补卡按钮的样式 - 统一了文字大小和颜色,提高了可读性 --- generallibrary/src/main/res/layout/activity_card_read.xml | 54 ++++++++++++++++++++++++++++-------------------------- 1 files changed, 28 insertions(+), 26 deletions(-) diff --git a/generallibrary/src/main/res/layout/activity_card_read.xml b/generallibrary/src/main/res/layout/activity_card_read.xml index 5e5c589..f7981c1 100644 --- a/generallibrary/src/main/res/layout/activity_card_read.xml +++ b/generallibrary/src/main/res/layout/activity_card_read.xml @@ -117,7 +117,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="2dp" - android:background="#F8F9FA" + android:background="#F8F9FB" android:gravity="center_vertical" android:orientation="horizontal" android:padding="12dp"> @@ -126,7 +126,7 @@ android:layout_width="105dp" android:layout_height="wrap_content" android:text="鎸佸崱浜猴細" - android:textColor="#333333" + android:textColor="#37474F" android:textSize="@dimen/text_size" /> <TextView @@ -135,7 +135,7 @@ android:layout_height="wrap_content" android:layout_weight="1" android:text="--" - android:textColor="#666666" + android:textColor="#546E7A" android:textSize="@dimen/text_size" /> </LinearLayout> @@ -144,7 +144,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="2dp" - android:background="#FFFFFF" + android:background="#E3F2FD" android:gravity="center_vertical" android:orientation="horizontal" android:padding="12dp"> @@ -153,8 +153,9 @@ android:layout_width="105dp" android:layout_height="wrap_content" android:text="鍗″湴鍧�锛�" - android:textColor="#333333" - android:textSize="@dimen/text_size" /> + android:textColor="#1976D2" + android:textSize="@dimen/text_size" + android:textStyle="bold" /> <TextView android:id="@+id/tv_card_number" @@ -162,7 +163,7 @@ android:layout_height="wrap_content" android:layout_weight="1" android:text="--" - android:textColor="#666666" + android:textColor="#37474F" android:textSize="@dimen/text_size" /> </LinearLayout> <!-- 鍗$墖鐘舵�� --> @@ -181,7 +182,7 @@ android:layout_width="105dp" android:layout_height="wrap_content" android:text="鍗$墖鐘舵�侊細" - android:textColor="#333333" + android:textColor="#37474F" android:textSize="@dimen/text_size" /> <TextView @@ -191,14 +192,15 @@ android:layout_weight="1" android:text="姝e父" android:textColor="#4CAF50" - android:textSize="@dimen/text_size" /> + android:textSize="@dimen/text_size" + android:textStyle="bold" /> </LinearLayout> <!-- 鍗$墖绫诲瀷 --> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="2dp" - android:background="#F8F9FA" + android:background="#F8F9FB" android:gravity="center_vertical" android:orientation="horizontal" android:padding="12dp"> @@ -207,7 +209,7 @@ android:layout_width="105dp" android:layout_height="wrap_content" android:text="鍗$被鍨嬶細" - android:textColor="#333333" + android:textColor="#37474F" android:textSize="@dimen/text_size" /> <TextView @@ -216,7 +218,7 @@ android:layout_height="wrap_content" android:layout_weight="1" android:text="--" - android:textColor="#666666" + android:textColor="#546E7A" android:textSize="@dimen/text_size" /> </LinearLayout> @@ -226,7 +228,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="2dp" - android:background="#FFFFFF" + android:background="#FFF8E1" android:gravity="center_vertical" android:orientation="horizontal" android:padding="12dp" @@ -236,7 +238,7 @@ android:layout_width="105dp" android:layout_height="wrap_content" android:text="鍗′綑棰濓細" - android:textColor="#333333" + android:textColor="#37474F" android:textSize="@dimen/text_size" /> <TextView @@ -245,7 +247,7 @@ android:layout_height="wrap_content" android:layout_weight="1" android:text="0.00鍏�" - android:textColor="#FF6B35" + android:textColor="#FF8F00" android:textSize="@dimen/text_size" android:textStyle="bold" /> </LinearLayout> @@ -256,7 +258,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="2dp" - android:background="#F8F9FA" + android:background="#F8F9FB" android:gravity="center_vertical" android:orientation="horizontal" android:padding="12dp" @@ -266,7 +268,7 @@ android:layout_width="105dp" android:layout_height="wrap_content" android:text="鍗$紪鍙凤細" - android:textColor="#333333" + android:textColor="#37474F" android:textSize="@dimen/text_size" /> <TextView @@ -275,7 +277,7 @@ android:layout_height="wrap_content" android:layout_weight="1" android:text="--" - android:textColor="#666666" + android:textColor="#546E7A" android:textSize="@dimen/text_size" /> </LinearLayout> @@ -293,7 +295,7 @@ android:layout_width="105dp" android:layout_height="wrap_content" android:text="鎵嬫満鍙凤細" - android:textColor="#333333" + android:textColor="#37474F" android:textSize="@dimen/text_size" /> <TextView @@ -302,7 +304,7 @@ android:layout_height="wrap_content" android:layout_weight="1" android:text="--" - android:textColor="#666666" + android:textColor="#546E7A" android:textSize="@dimen/text_size" /> </LinearLayout> @@ -311,7 +313,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="2dp" - android:background="#F8F9FA" + android:background="#F8F9FB" android:gravity="center_vertical" android:orientation="horizontal" android:padding="12dp"> @@ -320,7 +322,7 @@ android:layout_width="105dp" android:layout_height="wrap_content" android:text="韬唤璇佸彿锛�" - android:textColor="#333333" + android:textColor="#37474F" android:textSize="@dimen/text_size" /> <TextView @@ -329,7 +331,7 @@ android:layout_height="wrap_content" android:layout_weight="1" android:text="--" - android:textColor="#666666" + android:textColor="#546E7A" android:textSize="@dimen/text_size" /> </LinearLayout> @@ -340,7 +342,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginBottom="2dp" - android:background="#F8F9FA" + android:background="#FFFFFF" android:gravity="center_vertical" android:orientation="horizontal" android:padding="12dp" @@ -350,7 +352,7 @@ android:layout_width="105dp" android:layout_height="wrap_content" android:text="鏈�鍚庡厖鍊兼椂闂达細" - android:textColor="#333333" + android:textColor="#37474F" android:textSize="@dimen/text_size" /> <TextView @@ -359,7 +361,7 @@ android:layout_height="wrap_content" android:layout_weight="1" android:text="--" - android:textColor="#666666" + android:textColor="#546E7A" android:textSize="@dimen/text_size" /> </LinearLayout> -- Gitblit v1.8.0