fix: TTS播放按钮加到正确的页面(TaskListFragment)
TaskDetailFragment 未被使用,实际任务页面是 TaskListFragment。 - 在 TaskListFragment 布局加悬浮播放按钮 - 在 TaskListFragment 加 TTS 播放/停止逻辑 - 切换任务(左右滑动)时自动停止播报 - 离开页面自动停止播报 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -364,6 +364,19 @@
|
||||
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
|
||||
<!-- TTS 语音播报悬浮按钮:右侧垂直居中 -->
|
||||
<ImageView
|
||||
android:id="@+id/btnTts"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="36dp"
|
||||
android:layout_gravity="center_vertical|end"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:padding="6dp"
|
||||
android:src="@drawable/ic_speaker"
|
||||
android:background="@drawable/bg_tts_button"
|
||||
android:contentDescription="语音播报" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<!-- ===== 底部操作按钮(高度缩小,字体加大) ===== -->
|
||||
|
||||
Reference in New Issue
Block a user