From e7a6728aea008cab5befa5980382370c32974ce5 Mon Sep 17 00:00:00 2001 From: 张钢 <floatgang@163.com> Date: 星期三, 11 九月 2024 14:51:07 +0800 Subject: [PATCH] 修改了百年心愿模块的排版和显示不正确的问题 --- app/src/main/res/layout/item_hundred_wish.xml | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/app/src/main/res/layout/item_hundred_wish.xml b/app/src/main/res/layout/item_hundred_wish.xml index 1c57491..09d9aa5 100644 --- a/app/src/main/res/layout/item_hundred_wish.xml +++ b/app/src/main/res/layout/item_hundred_wish.xml @@ -48,7 +48,7 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" app:layout_constraintWidth_percent="0.5" - tools:text="寮犳皬App绔嬮」" /> + /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" @@ -57,7 +57,6 @@ android:text="@{bean.happenTime}" android:layout_alignParentEnd="true" android:layout_centerVertical="true" - tools:text="2023-05-16" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintTop_toTopOf="parent" app:layout_constraintEnd_toStartOf="@id/iv_fold" @@ -102,6 +101,8 @@ android:text="@{bean.cause}" android:textColor="@color/black" android:textSize="12sp" + android:maxLines="1" + android:ellipsize="end" /> </LinearLayout> <LinearLayout @@ -123,6 +124,8 @@ android:text="@{bean.beneficiary}" android:textColor="@color/black" android:textSize="12sp" + android:maxLines="1" + android:ellipsize="end" /> </LinearLayout> <LinearLayout @@ -144,6 +147,8 @@ android:text="@{bean.heir}" android:textColor="@color/black" android:textSize="12sp" + android:maxLines="1" + android:ellipsize="end" /> </LinearLayout> <LinearLayout @@ -165,6 +170,8 @@ android:text="@{bean.difficulty}" android:textColor="@color/black" android:textSize="12sp" + android:maxLines="1" + android:ellipsize="end" /> </LinearLayout> @@ -188,6 +195,8 @@ android:text="@{bean.isEffective}" android:textColor="@color/black" android:textSize="12sp" + android:maxLines="1" + android:ellipsize="end" /> </LinearLayout> <LinearLayout @@ -209,6 +218,8 @@ android:text="@{bean.remark}" android:textColor="@color/black" android:textSize="12sp" + android:maxLines="2" + android:ellipsize="end" /> </LinearLayout> -- Gitblit v1.9.1