feat: 任务页面布局优化(接单池防挑选+截止时间+巡检引导+语音播放)
1. 接单池改名"新任务"、隐藏积分和页码(防止用户挑肥拣瘦) 2. 待打卡/待完成页面增加截止时间显示 3. 巡检场景三层视觉:已打卡绿色+时间、下一个橙色高亮、后续灰色弱化 4. 巡检场景超屏自动滚动到当前进度 5. 用户上报任务支持语音播放(橙色药丸按钮) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
24
app/src/main/res/drawable/bg_btn_voice.xml
Normal file
24
app/src/main/res/drawable/bg_btn_voice.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- 语音播放按钮:橙色药丸形(左方右圆,和旧版一致) -->
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_pressed="true">
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="#FFCC8820" />
|
||||
<corners
|
||||
android:topStartRadius="8dp"
|
||||
android:bottomStartRadius="8dp"
|
||||
android:topEndRadius="24dp"
|
||||
android:bottomEndRadius="24dp" />
|
||||
</shape>
|
||||
</item>
|
||||
<item>
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="#FFEB9A26" />
|
||||
<corners
|
||||
android:topStartRadius="8dp"
|
||||
android:bottomStartRadius="8dp"
|
||||
android:topEndRadius="24dp"
|
||||
android:bottomEndRadius="24dp" />
|
||||
</shape>
|
||||
</item>
|
||||
</selector>
|
||||
@@ -134,6 +134,38 @@
|
||||
android:layout_marginBottom="11dp"
|
||||
android:visibility="gone" />
|
||||
|
||||
<!-- 语音播放按钮(用户上报任务附带语音) -->
|
||||
<LinearLayout
|
||||
android:id="@+id/btnVoice"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="48dp"
|
||||
android:background="@drawable/bg_btn_voice"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="24dp"
|
||||
android:layout_marginBottom="11dp"
|
||||
android:visibility="gone">
|
||||
|
||||
<!-- 播放图标 -->
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="▶"
|
||||
android:textColor="@color/text_primary"
|
||||
android:textSize="24sp" />
|
||||
|
||||
<!-- 语音时长 -->
|
||||
<TextView
|
||||
android:id="@+id/tvVoiceDuration"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/text_primary"
|
||||
android:textSize="24sp"
|
||||
android:textStyle="bold"
|
||||
android:layout_marginStart="8dp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 指引块1:去哪里(橙色) -->
|
||||
<LinearLayout
|
||||
android:id="@+id/blockGoWhere"
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="接单池"
|
||||
android:text="新任务"
|
||||
android:textColor="@color/text_primary"
|
||||
android:textSize="20sp"
|
||||
android:textStyle="bold"
|
||||
|
||||
Reference in New Issue
Block a user