fix: 备注改为纯文本,去掉卡片容器和内边距
"备注: 需要带清洁工具" 直接一行文字,不居中不占额外空间 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -258,7 +258,7 @@ class TaskListFragment : BaseFragment<FragmentTaskListBinding>() {
|
||||
binding.tvPoints.visibility = View.GONE
|
||||
binding.picScrollView.visibility = View.GONE
|
||||
binding.picContainer.removeAllViews()
|
||||
binding.noteContainer.visibility = View.GONE
|
||||
binding.tvNote.visibility = View.GONE
|
||||
binding.btnVoice.visibility = View.GONE
|
||||
binding.blockGoWhere.visibility = View.GONE
|
||||
binding.blockNoScene.visibility = View.GONE
|
||||
@@ -377,8 +377,8 @@ class TaskListFragment : BaseFragment<FragmentTaskListBinding>() {
|
||||
else -> null
|
||||
}
|
||||
if (note != null) {
|
||||
binding.tvNote.text = note
|
||||
binding.noteContainer.visibility = View.VISIBLE
|
||||
binding.tvNote.text = "备注: $note"
|
||||
binding.tvNote.visibility = View.VISIBLE
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -179,36 +179,21 @@
|
||||
android:layout_marginTop="5dp" />
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 备注块:标签和内容同行 -->
|
||||
<LinearLayout
|
||||
<!-- 备注块:标签和内容同行,靠左对齐 -->
|
||||
<TextView
|
||||
android:id="@+id/noteContainer"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:background="@drawable/bg_note"
|
||||
android:padding="13dp"
|
||||
android:visibility="gone" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvNote"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/text_secondary"
|
||||
android:textSize="22sp"
|
||||
android:layout_marginBottom="11dp"
|
||||
android:gravity="center_vertical"
|
||||
android:visibility="gone">
|
||||
|
||||
<!-- 备注标签 -->
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="备注: "
|
||||
android:textColor="@color/text_secondary"
|
||||
android:textSize="22sp" />
|
||||
|
||||
<!-- 备注内容 -->
|
||||
<TextView
|
||||
android:id="@+id/tvNote"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:textColor="@color/text_primary"
|
||||
android:textSize="22sp" />
|
||||
|
||||
</LinearLayout>
|
||||
android:visibility="gone" />
|
||||
|
||||
<!-- 语音播放按钮(用户上报任务附带语音描述) -->
|
||||
<LinearLayout
|
||||
|
||||
Reference in New Issue
Block a user