style: 备注样式优化
- 加"备注"标签(18sp 灰色),用户知道这块文字是什么 - 内容改白色文字(text_primary),对比度更高 - 背景从绿色改为深灰卡片色+细边框,和指引块(橙/绿)区分 - 新建 bg_note.xml 替换 bg_note_green.xml 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.tvNote.visibility = View.GONE
|
||||
binding.noteContainer.visibility = View.GONE
|
||||
binding.btnVoice.visibility = View.GONE
|
||||
binding.blockGoWhere.visibility = View.GONE
|
||||
binding.blockNoScene.visibility = View.GONE
|
||||
@@ -378,7 +378,7 @@ class TaskListFragment : BaseFragment<FragmentTaskListBinding>() {
|
||||
}
|
||||
if (note != null) {
|
||||
binding.tvNote.text = note
|
||||
binding.tvNote.visibility = View.VISIBLE
|
||||
binding.noteContainer.visibility = View.VISIBLE
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
7
app/src/main/res/drawable/bg_note.xml
Normal file
7
app/src/main/res/drawable/bg_note.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- 备注块背景:深灰卡片底色,和指引块(橙/绿)区分 -->
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
|
||||
<solid android:color="#FF1A1A1A" />
|
||||
<corners android:radius="11dp" />
|
||||
<stroke android:width="1dp" android:color="#33FFFFFF" />
|
||||
</shape>
|
||||
@@ -179,18 +179,36 @@
|
||||
android:layout_marginTop="5dp" />
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 备注块(绿色淡背景,20sp) -->
|
||||
<!-- 备注块:标签+内容 -->
|
||||
<LinearLayout
|
||||
android:id="@+id/noteContainer"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:background="@drawable/bg_note"
|
||||
android:padding="13dp"
|
||||
android:layout_marginBottom="11dp"
|
||||
android:visibility="gone">
|
||||
|
||||
<!-- 备注标签 -->
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="备注"
|
||||
android:textColor="@color/text_secondary"
|
||||
android:textSize="18sp"
|
||||
android:layout_marginBottom="5dp" />
|
||||
|
||||
<!-- 备注内容 -->
|
||||
<TextView
|
||||
android:id="@+id/tvNote"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/bg_note_green"
|
||||
android:textColor="@color/text_secondary"
|
||||
android:textColor="@color/text_primary"
|
||||
android:textSize="24sp"
|
||||
android:lineSpacingMultiplier="1.5"
|
||||
android:padding="16dp"
|
||||
android:layout_marginBottom="11dp"
|
||||
android:visibility="gone" />
|
||||
android:lineSpacingMultiplier="1.4" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 语音播放按钮(用户上报任务附带语音描述) -->
|
||||
<LinearLayout
|
||||
|
||||
Reference in New Issue
Block a user