From 590c1cff46b105d774271f950caa9f65523f05c1 Mon Sep 17 00:00:00 2001 From: Linjiajia <319408893@qq.com> Date: 星期五, 29 十二月 2023 20:20:40 +0800 Subject: [PATCH] 1、增加护眼模式主题\n2、修复显示问题 --- app/src/main/res/layout/item_contacts.xml | 19 +++++++++++++------ 1 files changed, 13 insertions(+), 6 deletions(-) diff --git a/app/src/main/res/layout/item_contacts.xml b/app/src/main/res/layout/item_contacts.xml index 1d37909..52874e5 100644 --- a/app/src/main/res/layout/item_contacts.xml +++ b/app/src/main/res/layout/item_contacts.xml @@ -20,7 +20,7 @@ android:layout_margin="2dp" tools:layout_height="wrap_content" app:cardCornerRadius="@dimen/dp_10" - app:cardBackgroundColor="@color/color_card_pink" + app:cardBackgroundColor="?attr/cardBackgroundColorFirst" > <LinearLayout android:layout_width="match_parent" @@ -30,24 +30,31 @@ <RelativeLayout android:id="@+id/layout_title" android:layout_width="match_parent" - android:layout_height="@dimen/dp_40" + android:layout_height="40dp" > - <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:text="@{bean.myName+` 鐨� 閫� 璁� 褰昤}" android:textColor="@color/black" - android:textSize="@dimen/sp_16" - android:textStyle="bold" + android:textSize="16sp" tools:text="寮犱笁 鐨� 閫� 璁� 褰�" /> + <ImageView + android:id="@+id/iv_fold" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:background="@drawable/ic_fold" + android:layout_marginEnd="10dp" + android:layout_alignParentRight="true" + android:layout_centerVertical="true" + /> </RelativeLayout> <LinearLayout android:id="@+id/layout_content" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginBottom="30dp" + android:layout_marginBottom="20dp" > <androidx.recyclerview.widget.RecyclerView android:id="@+id/recyclerView" -- Gitblit v1.9.1