fix: 备注标签和内容合为一个 TextView
"备注: xxx" 拼在一起,去掉多余的标签 TextView 和 LinearLayout 容器 样式不变(深灰背景、22sp、白色文字、13dp padding) 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.tvPoints.visibility = View.GONE
|
||||||
binding.picScrollView.visibility = View.GONE
|
binding.picScrollView.visibility = View.GONE
|
||||||
binding.picContainer.removeAllViews()
|
binding.picContainer.removeAllViews()
|
||||||
binding.noteContainer.visibility = View.GONE
|
binding.tvNote.visibility = View.GONE
|
||||||
binding.btnVoice.visibility = View.GONE
|
binding.btnVoice.visibility = View.GONE
|
||||||
binding.blockGoWhere.visibility = View.GONE
|
binding.blockGoWhere.visibility = View.GONE
|
||||||
binding.blockNoScene.visibility = View.GONE
|
binding.blockNoScene.visibility = View.GONE
|
||||||
@@ -377,8 +377,8 @@ class TaskListFragment : BaseFragment<FragmentTaskListBinding>() {
|
|||||||
else -> null
|
else -> null
|
||||||
}
|
}
|
||||||
if (note != null) {
|
if (note != null) {
|
||||||
binding.tvNote.text = note
|
binding.tvNote.text = "备注: $note"
|
||||||
binding.noteContainer.visibility = View.VISIBLE
|
binding.tvNote.visibility = View.VISIBLE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -179,36 +179,17 @@
|
|||||||
android:layout_marginTop="5dp" />
|
android:layout_marginTop="5dp" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<!-- 备注块:标签和内容同行 -->
|
<!-- 备注(备注:标签拼在内容文字前面) -->
|
||||||
<LinearLayout
|
<TextView
|
||||||
android:id="@+id/noteContainer"
|
android:id="@+id/tvNote"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="horizontal"
|
|
||||||
android:background="@drawable/bg_note"
|
android:background="@drawable/bg_note"
|
||||||
android:padding="13dp"
|
android:padding="13dp"
|
||||||
android:layout_marginBottom="11dp"
|
android:layout_marginBottom="11dp"
|
||||||
android:gravity="center_vertical"
|
android:textColor="@color/text_primary"
|
||||||
android:visibility="gone">
|
android:textSize="22sp"
|
||||||
|
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>
|
|
||||||
|
|
||||||
<!-- 语音播放按钮(用户上报任务附带语音描述) -->
|
<!-- 语音播放按钮(用户上报任务附带语音描述) -->
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
|||||||
Reference in New Issue
Block a user