fix: TTS按钮放大到48dp + 首页时钟显示秒
1. TTS悬浮按钮从36dp放大到48dp,老年人更容易点击 2. 首页时钟从 HH:mm 改为 HH:mm:ss,显示秒 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -367,7 +367,7 @@ class HomeFragment : BaseFragment<FragmentHomeBinding>() {
|
||||
/** 更新时钟和日期 */
|
||||
private fun updateClock() {
|
||||
val info = DateUtil.getDateInfo()
|
||||
tvClock.text = DateUtil.formatTimeShort()
|
||||
tvClock.text = DateUtil.formatTime()
|
||||
tvDate.text = "${info.month}月${info.day}日 ${info.week}"
|
||||
// 同步更新打卡面板时钟
|
||||
if (punchPanel.isShowing) {
|
||||
|
||||
@@ -101,14 +101,14 @@
|
||||
|
||||
</ScrollView>
|
||||
|
||||
<!-- TTS 语音播报悬浮按钮:右侧垂直居中,36dp 圆形,触摸区 44dp -->
|
||||
<!-- TTS 语音播报悬浮按钮:右侧垂直居中,48dp 触摸区 -->
|
||||
<ImageView
|
||||
android:id="@+id/btnTts"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="36dp"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_gravity="center_vertical|end"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:padding="6dp"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:padding="8dp"
|
||||
android:src="@drawable/ic_speaker"
|
||||
android:background="@drawable/bg_tts_button"
|
||||
android:contentDescription="语音播报" />
|
||||
|
||||
@@ -365,14 +365,14 @@
|
||||
</LinearLayout>
|
||||
</ScrollView>
|
||||
|
||||
<!-- TTS 语音播报悬浮按钮:右侧垂直居中 -->
|
||||
<!-- TTS 语音播报悬浮按钮:右侧垂直居中,48dp 触摸区 -->
|
||||
<ImageView
|
||||
android:id="@+id/btnTts"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="36dp"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_gravity="center_vertical|end"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:padding="6dp"
|
||||
android:padding="8dp"
|
||||
android:src="@drawable/ic_speaker"
|
||||
android:background="@drawable/bg_tts_button"
|
||||
android:contentDescription="语音播报" />
|
||||
|
||||
Reference in New Issue
Block a user