From bf4e40cdf60c2a2fd8a486051a1ddac2daefef62 Mon Sep 17 00:00:00 2001
From: Linjiajia <319408893@qq.com>
Date: 星期二, 28 三月 2023 19:00:24 +0800
Subject: [PATCH] 家大事记完善

---
 app/src/main/res/layout/item_family_memorabilia.xml |   38 +++++++++++++++++++++++++-------------
 1 files changed, 25 insertions(+), 13 deletions(-)

diff --git a/app/src/main/res/layout/item_family_memorabilia.xml b/app/src/main/res/layout/item_family_memorabilia.xml
index 8d68bc2..4e6e118 100644
--- a/app/src/main/res/layout/item_family_memorabilia.xml
+++ b/app/src/main/res/layout/item_family_memorabilia.xml
@@ -15,7 +15,7 @@
         <androidx.cardview.widget.CardView
             android:id="@+id/cardView"
             android:layout_width="match_parent"
-            android:layout_height="@dimen/dp_40"
+            android:layout_height="40dp"
             android:layout_margin="@dimen/dp_2"
             app:cardCornerRadius="@dimen/dp_10"
             app:cardBackgroundColor="@color/color_card_pink"
@@ -24,39 +24,51 @@
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
                 android:orientation="vertical"
-                android:paddingHorizontal="@dimen/dp_24"
                 >
-                <LinearLayout
+                <RelativeLayout
                     android:id="@+id/layout_title"
                     android:layout_width="match_parent"
                     android:layout_height="@dimen/dp_40"
                     android:gravity="center_vertical"
                     >
+                    <CheckBox
+                        android:id="@+id/checkbox"
+                        android:layout_width="18dp"
+                        android:layout_height="18dp"
+                        android:layout_marginStart="3dp"
+                        android:layout_centerVertical="true"
+                        android:button="@drawable/selector_checkbox"
+                        android:background="?selectableItemBackgroundBorderless"
+                        />
                     <TextView
-                        android:layout_width="0dp"
+                        android:layout_width="wrap_content"
                         android:layout_height="wrap_content"
+                        android:layout_centerVertical="true"
+                        android:layout_marginStart="24dp"
                         android:textSize="@dimen/sp_16"
                         android:textColor="@color/black"
-                        android:text="寮犳皬app绔嬮」"
+                        android:text="@{bean.title}"
                         android:layout_weight="1"
                         android:textStyle="bold"
                         />
                     <TextView
-                        android:layout_width="0dp"
+                        android:layout_width="wrap_content"
                         android:layout_height="wrap_content"
-                        android:layout_weight="1"
                         android:textSize="@dimen/sp_16"
                         android:textColor="@color/black"
-                        android:text="2023.3.1"
+                        android:text="@{bean.createTime}"
                         android:textStyle="bold"
-                        android:gravity="end"
+                        android:layout_marginEnd="24dp"
+                        android:layout_alignParentEnd="true"
+                        android:layout_centerVertical="true"
                         />
 
-                </LinearLayout>
+                </RelativeLayout>
                 <LinearLayout
                     android:layout_width="match_parent"
                     android:layout_height="wrap_content"
                     android:orientation="vertical"
+                    android:paddingHorizontal="@dimen/dp_24"
                     >
                     <LinearLayout
                         android:layout_width="match_parent"
@@ -75,7 +87,7 @@
                         <TextView
                             android:layout_width="wrap_content"
                             android:layout_height="wrap_content"
-                            android:text="01"
+                            android:text="@{String.valueOf(bean.id)}"
                             android:textColor="@color/black"
                             android:textSize="@dimen/sp_12"
                             android:textStyle="bold"
@@ -98,7 +110,7 @@
                         <TextView
                             android:layout_width="wrap_content"
                             android:layout_height="wrap_content"
-                            android:text="寮犱笁銆佹潕鍥涖�佸紶鍥涖�佹潕涓�"
+                            android:text="@{bean.people}"
                             android:textColor="@color/black"
                             android:textSize="@dimen/sp_12"
                             android:textStyle="bold"
@@ -121,7 +133,7 @@
                         <TextView
                             android:layout_width="wrap_content"
                             android:layout_height="wrap_content"
-                            android:text="椤圭洰绔嬮」"
+                            android:text="@{bean.remark}"
                             android:textColor="@color/black"
                             android:textSize="@dimen/sp_12"
                             android:textStyle="bold"

--
Gitblit v1.9.1