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_list.xml | 52 ++++++++++++++++++++++++++++++++--------------------
1 files changed, 32 insertions(+), 20 deletions(-)
diff --git a/generallibrary/src/main/res/layout/activity_card_list.xml b/generallibrary/src/main/res/layout/activity_card_list.xml
index 5a14bb8..ce3804f 100644
--- a/generallibrary/src/main/res/layout/activity_card_list.xml
+++ b/generallibrary/src/main/res/layout/activity_card_list.xml
@@ -5,7 +5,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
- tools:context=".activity.CardListActivity">
+ tools:context=".activity.SearchCardListActivity">
<com.dayu.baselibrary.view.TitleBar
android:id="@+id/title_bar"
@@ -16,30 +16,42 @@
app:leftImage="@mipmap/icon_back"
app:rightImage="@mipmap/icon_search" />
- <com.scwang.smart.refresh.layout.SmartRefreshLayout
- android:id="@+id/refresh_layout"
+ <FrameLayout
android:layout_width="match_parent"
- android:layout_height="match_parent"
- app:srlAccentColor="@color/colorPrimary"
- app:srlEnablePreviewInEditMode="true">
+ android:layout_height="0dp"
+ android:layout_weight="1">
- <com.scwang.smart.refresh.header.ClassicsHeader
- android:layout_width="match_parent"
- android:layout_height="wrap_content" />
-
- <androidx.recyclerview.widget.RecyclerView
- android:id="@+id/recycler_view"
+ <com.scwang.smart.refresh.layout.SmartRefreshLayout
+ android:id="@+id/refresh_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:paddingTop="8dp"
- android:paddingBottom="8dp"
- android:clipToPadding="false"
- android:overScrollMode="never" />
+ app:srlAccentColor="@color/colorPrimary"
+ app:srlEnablePreviewInEditMode="true">
- <com.scwang.smart.refresh.footer.ClassicsFooter
- android:layout_width="match_parent"
- android:layout_height="wrap_content" />
+ <com.scwang.smart.refresh.header.ClassicsHeader
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content" />
- </com.scwang.smart.refresh.layout.SmartRefreshLayout>
+ <androidx.recyclerview.widget.RecyclerView
+ android:id="@+id/recycler_view"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:paddingTop="8dp"
+ android:paddingBottom="8dp"
+ android:clipToPadding="false"
+ android:background="@color/base_list_bg"
+ android:overScrollMode="never" />
+
+ <com.scwang.smart.refresh.footer.ClassicsFooter
+ android:id="@+id/footer"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ app:srlClassicsSpinnerStyle="Translate" />
+
+ </com.scwang.smart.refresh.layout.SmartRefreshLayout>
+
+
+
+ </FrameLayout>
</LinearLayout>
\ No newline at end of file
--
Gitblit v1.8.0