From a0dc6be52293a64ebfe38b8c2391dc7d2ffe63ae Mon Sep 17 00:00:00 2001
From: Linjiajia <319408893@qq.com>
Date: 星期一, 15 五月 2023 20:05:27 +0800
Subject: [PATCH] 提交代码

---
 app/src/main/res/layout/item_daily_consume_record.xml |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/app/src/main/res/layout/item_daily_consume_record.xml b/app/src/main/res/layout/item_daily_consume_record.xml
index 113c791..ec8ac0d 100644
--- a/app/src/main/res/layout/item_daily_consume_record.xml
+++ b/app/src/main/res/layout/item_daily_consume_record.xml
@@ -8,7 +8,12 @@
     <data>
         <variable
             name="bean"
-            type="com.application.zhangshi_app_android.bean.DailyConsumeRecordBean" />
+            type="com.application.zhangshi_app_android.bean.DailyConsumeRecordBean"
+            />
+        <variable
+            name="isFold"
+            type="boolean"
+            />
     </data>
 
     <androidx.cardview.widget.CardView
@@ -48,9 +53,10 @@
                     android:background="@drawable/ic_tourism_add"
                     />
                 <ImageView
+                    android:id="@+id/iv_fold"
                     android:layout_width="wrap_content"
                     android:layout_height="wrap_content"
-                    android:background="@drawable/ic_fold"
+                    android:background="@{isFold?@drawable/ic_fold:@drawable/ic_unfold}"
                     android:layout_marginStart="10dp"
                     />
             </LinearLayout>

--
Gitblit v1.9.1