feat: ResultFlashView 操作结果指示器(Apple Watch 风格)
全屏深色遮罩 + 大圆圈图标,属性动画弹出+淡出,1.5秒自动消失。 - 成功:绿色圆圈 + ✓,OvershootInterpolator 回弹效果 - 失败:红色圆圈 + ✗ - 替代 QuTipDialog 用于 NFC 打卡和按钮操作的结果反馈 - 所有操作统一视觉风格 应用到: - TaskDetailFragment NFC 打卡 - TaskListFragment NFC 打卡 - MainActivity 返回键主动打卡 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -33,7 +33,14 @@
|
||||
android:layout_height="match_parent"
|
||||
android:visibility="gone" />
|
||||
|
||||
<!-- Layer 4: OTA 更新弹窗(最顶层,全屏覆盖,默认隐藏) -->
|
||||
<!-- Layer 4: 操作结果指示器(Apple Watch 风格,弹出+淡出,默认隐藏) -->
|
||||
<com.xiaoqu.watch.ui.widget.ResultFlashView
|
||||
android:id="@+id/resultFlash"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:visibility="gone" />
|
||||
|
||||
<!-- Layer 5: OTA 更新弹窗(最顶层,全屏覆盖,默认隐藏) -->
|
||||
<com.xiaoqu.watch.ui.widget.UpdateDialogView
|
||||
android:id="@+id/updateDialog"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
36
app/src/main/res/layout/view_result_flash.xml
Normal file
36
app/src/main/res/layout/view_result_flash.xml
Normal file
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- 操作结果闪烁指示器(类 Apple Watch 风格)
|
||||
全屏深色遮罩 + 中心大图标,属性动画弹出/淡出 -->
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#CC000000"
|
||||
android:visibility="gone">
|
||||
|
||||
<!-- 中心图标容器(圆形背景 + 图标文字) -->
|
||||
<FrameLayout
|
||||
android:id="@+id/iconContainer"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="100dp"
|
||||
android:layout_gravity="center">
|
||||
|
||||
<!-- 圆形边框 -->
|
||||
<View
|
||||
android:id="@+id/circleRing"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/bg_result_circle" />
|
||||
|
||||
<!-- ✓ 或 ✗ 图标 -->
|
||||
<TextView
|
||||
android:id="@+id/tvIcon"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center"
|
||||
android:textColor="@android:color/white"
|
||||
android:textSize="48sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
</FrameLayout>
|
||||
Reference in New Issue
Block a user