fix(home): 修复健康知识列表项标签过长时与日期重叠
标签文本新增单行省略号处理及右边距限制,移除图片固定居左居中对齐属性, 避免标签文字过长时撑破布局或与右侧日期重叠。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
c33c76f732
commit
b609f07240
@@ -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" />
|
||||
|
||||
<!-- 标签文本 -->
|
||||
<TextView
|
||||
android:layout_marginRight="60dp"
|
||||
android:id="@+id/tv_tag"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -81,7 +79,9 @@
|
||||
android:layout_toRightOf="@+id/iv_tag_icon"
|
||||
android:textColor="#14BEBE"
|
||||
android:textSize="@dimen/txt11"
|
||||
tools:text="心血管" />
|
||||
android:lines="1"
|
||||
android:ellipsize="end"
|
||||
tools:text="心血管心血管心血管心血管心血管心血管心血管心血管心血管心血管" />
|
||||
|
||||
<!-- 日期 -->
|
||||
<TextView
|
||||
|
||||
Reference in New Issue
Block a user