From b609f072407aaae0f782763c97ddd91f76151b1d Mon Sep 17 00:00:00 2001 From: zhanglei <350328959@qq.com> Date: Tue, 30 Jun 2026 09:40:49 +0800 Subject: [PATCH] =?UTF-8?q?fix(home):=20=E4=BF=AE=E5=A4=8D=E5=81=A5?= =?UTF-8?q?=E5=BA=B7=E7=9F=A5=E8=AF=86=E5=88=97=E8=A1=A8=E9=A1=B9=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E8=BF=87=E9=95=BF=E6=97=B6=E4=B8=8E=E6=97=A5=E6=9C=9F?= =?UTF-8?q?=E9=87=8D=E5=8F=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 标签文本新增单行省略号处理及右边距限制,移除图片固定居左居中对齐属性, 避免标签文字过长时撑破布局或与右侧日期重叠。 Co-Authored-By: Claude Opus 4.7 --- app/src/main/res/layout/item_health_knowledge.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/res/layout/item_health_knowledge.xml b/app/src/main/res/layout/item_health_knowledge.xml index 5745c55..e3f4421 100644 --- a/app/src/main/res/layout/item_health_knowledge.xml +++ b/app/src/main/res/layout/item_health_knowledge.xml @@ -66,13 +66,11 @@ android:id="@+id/iv_tag_icon" android:layout_width="@dimen/dp_20" android:layout_height="@dimen/dp_20" - android:layout_alignParentLeft="true" - android:layout_centerVertical="true" - android:scaleType="centerInside" android:src="@mipmap/ic_home_know_tag" /> + android:lines="1" + android:ellipsize="end" + tools:text="心血管心血管心血管心血管心血管心血管心血管心血管心血管心血管" />