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颜色
---
generallibrary/src/main/res/layout/activity_manager_read.xml | 46 +++++++++++++++++++++++++++++++++-------------
1 files changed, 33 insertions(+), 13 deletions(-)
diff --git a/generallibrary/src/main/res/layout/activity_manager_read.xml b/generallibrary/src/main/res/layout/activity_manager_read.xml
index 19ef124..3ecb3e6 100644
--- a/generallibrary/src/main/res/layout/activity_manager_read.xml
+++ b/generallibrary/src/main/res/layout/activity_manager_read.xml
@@ -1,9 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- xmlns:app="http://schemas.android.com/apk/res-auto">
-
+ 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" />
@@ -25,14 +26,16 @@
<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:layout_height="wrap_content">
+ android:visibility="gone">
+
<LinearLayout
android:layout_width="match_parent"
- android:orientation="vertical"
- android:layout_height="wrap_content">
-
+ android:layout_height="wrap_content"
+ android:orientation="vertical">
+
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
@@ -44,15 +47,15 @@
android:layout_height="wrap_content"
android:text="鍗″彿锛�"
android:textColor="#333333"
- android:textSize="16sp"/>
+ 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"
- android:text="@{viewModel.cardNumber}"/>
+ android:textSize="16sp" />
</LinearLayout>
<LinearLayout
@@ -66,7 +69,7 @@
android:layout_height="wrap_content"
android:text="澶囨敞锛�"
android:textColor="#333333"
- android:textSize="16sp"/>
+ android:textSize="16sp" />
<EditText
android:id="@+id/remark_et"
@@ -74,8 +77,9 @@
android:layout_height="wrap_content"
android:background="@null"
android:hint="璇疯緭鍏ュ娉ㄤ俊鎭�"
- android:textSize="16sp"
- android:text="@={viewModel.remark}"/>
+
+ android:text="@={viewModel.remark}"
+ android:textSize="16sp" />
</LinearLayout>
</LinearLayout>
@@ -122,5 +126,21 @@
</LinearLayout>
</androidx.cardview.widget.CardView>
</LinearLayout>
+
+ <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>
\ No newline at end of file
--
Gitblit v1.8.0