style: 备注恢复为同行标签版(深灰背景+备注:+白色内容)
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.tvNote.visibility = View.GONE
|
binding.noteContainer.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
|
||||||
@@ -378,7 +378,7 @@ class TaskListFragment : BaseFragment<FragmentTaskListBinding>() {
|
|||||||
}
|
}
|
||||||
if (note != null) {
|
if (note != null) {
|
||||||
binding.tvNote.text = note
|
binding.tvNote.text = note
|
||||||
binding.tvNote.visibility = View.VISIBLE
|
binding.noteContainer.visibility = View.VISIBLE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -179,18 +179,36 @@
|
|||||||
android:layout_marginTop="5dp" />
|
android:layout_marginTop="5dp" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<!-- 备注块(绿色淡背景) -->
|
<!-- 备注块:标签和内容同行 -->
|
||||||
<TextView
|
<LinearLayout
|
||||||
android:id="@+id/tvNote"
|
android:id="@+id/noteContainer"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="@drawable/bg_note_green"
|
android:orientation="horizontal"
|
||||||
android:textColor="@color/text_secondary"
|
android:background="@drawable/bg_note"
|
||||||
android:textSize="24sp"
|
android:padding="13dp"
|
||||||
android:lineSpacingMultiplier="1.5"
|
|
||||||
android:padding="16dp"
|
|
||||||
android:layout_marginBottom="11dp"
|
android:layout_marginBottom="11dp"
|
||||||
android:visibility="gone" />
|
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>
|
||||||
|
|
||||||
<!-- 语音播放按钮(用户上报任务附带语音描述) -->
|
<!-- 语音播放按钮(用户上报任务附带语音描述) -->
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
|||||||
Reference in New Issue
Block a user