style: 语音按钮视觉优化
- 背景改为橙色半透明+边框,和指引块风格统一 - 宽度 match_parent,内含声波图标+语音描述+时长 - 播放中切换背景高亮+停止图标,停止后恢复 - 新增 bg_btn_voice_playing.xml 播放状态背景 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -134,35 +134,44 @@
|
||||
android:layout_marginBottom="11dp"
|
||||
android:visibility="gone" />
|
||||
|
||||
<!-- 语音播放按钮(用户上报任务附带语音) -->
|
||||
<!-- 语音播放按钮(用户上报任务附带语音描述) -->
|
||||
<LinearLayout
|
||||
android:id="@+id/btnVoice"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="48dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="56dp"
|
||||
android:background="@drawable/bg_btn_voice"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="24dp"
|
||||
android:paddingStart="19dp"
|
||||
android:paddingEnd="19dp"
|
||||
android:layout_marginBottom="11dp"
|
||||
android:visibility="gone">
|
||||
|
||||
<!-- 播放图标 -->
|
||||
<!-- 声波图标(播放中切换为暂停) -->
|
||||
<TextView
|
||||
android:id="@+id/tvVoiceIcon"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="▶"
|
||||
android:textColor="@color/text_primary"
|
||||
android:textSize="24sp" />
|
||||
android:text="🔊"
|
||||
android:textSize="26sp" />
|
||||
|
||||
<!-- 语音标签 -->
|
||||
<TextView
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="语音描述"
|
||||
android:textColor="@color/warning"
|
||||
android:textSize="24sp"
|
||||
android:textStyle="bold"
|
||||
android:layout_marginStart="11dp" />
|
||||
|
||||
<!-- 语音时长 -->
|
||||
<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" />
|
||||
android:textColor="@color/text_secondary"
|
||||
android:textSize="22sp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user