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:
dongliang
2026-05-07 15:28:52 +09:30
parent 10dacd26ef
commit 432dfc8d3d
3 changed files with 36 additions and 11 deletions

View 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>

View File

@@ -179,18 +179,36 @@
android:layout_marginTop="5dp" />
</LinearLayout>
<!-- 备注块绿色淡背景20sp -->
<TextView
android:id="@+id/tvNote"
<!-- 备注块:标签+内容 -->
<LinearLayout
android:id="@+id/noteContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/bg_note_green"
android:textColor="@color/text_secondary"
android:textSize="24sp"
android:lineSpacingMultiplier="1.5"
android:padding="16dp"
android:orientation="vertical"
android:background="@drawable/bg_note"
android:padding="13dp"
android:layout_marginBottom="11dp"
android:visibility="gone" />
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:textColor="@color/text_primary"
android:textSize="24sp"
android:lineSpacingMultiplier="1.4" />
</LinearLayout>
<!-- 语音播放按钮(用户上报任务附带语音描述) -->
<LinearLayout