From 55b196ea2e28a8d859c85326f2147a4f7b7196de Mon Sep 17 00:00:00 2001 From: zuojincheng <lf_zuo@163.com> Date: 星期四, 10 四月 2025 10:58:32 +0800 Subject: [PATCH] feat(general): 新增开卡信息保存功能并优化界面布局- 新增 CardRegistrationBean 数据模型用于保存开卡信息 - 在数据库中添加 card_registration 表用于存储开卡记录 - 优化 NewCard2Activity 界面布局,调整样式和间距 - 添加协程支持,实现异步保存开卡信息到数据库 - 更新颜色配置,统一使用新加的 base_blue_bg 和 base_green_bg颜色 --- baselibrary/src/main/res/layout/text_dialog.xml | 50 ++++++++++++++++++++++++++++++++++++-------------- 1 files changed, 36 insertions(+), 14 deletions(-) diff --git a/baselibrary/src/main/res/layout/text_dialog.xml b/baselibrary/src/main/res/layout/text_dialog.xml index 371412f..4b4b1cb 100644 --- a/baselibrary/src/main/res/layout/text_dialog.xml +++ b/baselibrary/src/main/res/layout/text_dialog.xml @@ -2,28 +2,50 @@ <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" - android:background="#00ffffff" + android:background="#40000000" android:gravity="center" android:orientation="vertical"> <LinearLayout - android:layout_width="wrap_content" + android:layout_width="match_parent" android:layout_height="wrap_content" + android:padding="5dp" + android:layout_margin="@dimen/dialog_bg_margin" android:background="@drawable/base_bg_dialog_top_stroke" android:gravity="center" - android:orientation="vertical" - android:padding="20dp"> + android:orientation="vertical"> + <TextView - + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="20dp" + android:layout_marginTop="20dp" + android:layout_marginRight="20dp" + android:gravity="center" + android:text="鎻� 绀�" + android:textColor="@color/text_color" + android:textSize="20sp" /> + <View + android:layout_width="match_parent" + android:layout_height="2px" + android:layout_marginTop="20dp" + android:background="@color/line_bg" /> <TextView android:id="@+id/textData" - android:layout_width="300dp" + android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginTop="20dp" + android:layout_marginLeft="20dp" + android:layout_marginTop="30dp" + android:layout_marginRight="20dp" android:gravity="center" - android:textColor="#000000" + android:textColor="@color/text_color" android:textSize="20sp" /> + <View + android:layout_width="match_parent" + android:layout_height="2px" + android:layout_marginTop="30dp" + android:background="@color/line_bg" /> <LinearLayout android:layout_width="match_parent" @@ -33,16 +55,16 @@ <TextView android:id="@+id/cannel" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginTop="20dp" - android:background="@drawable/base_login_btn" + android:layout_width="match_parent" + android:layout_height="@dimen/dialog_btn_height" + android:gravity="center" android:paddingLeft="15dp" android:paddingTop="5dp" android:paddingRight="15dp" android:paddingBottom="5dp" - android:textColor="#000000" - android:text="纭" + android:background="@drawable/textview_select_bg" + android:text="纭� 璁�" + android:textColor="@color/dialog_btn" android:textSize="20sp" /> -- Gitblit v1.8.0