2026-04-30 21:20:06 +09:30
|
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2026-04-30 21:32:19 +09:30
|
|
|
|
<!-- OTA 更新弹窗(全屏覆盖,阻断用户操作)
|
|
|
|
|
|
手表屏幕 240x284px 120dpi,老年用户需要大字体大按钮 -->
|
2026-04-30 21:20:06 +09:30
|
|
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
|
android:background="#E6000000"
|
|
|
|
|
|
android:clickable="true"
|
|
|
|
|
|
android:focusable="true">
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
|
android:orientation="vertical"
|
2026-04-30 21:32:19 +09:30
|
|
|
|
android:padding="16dp">
|
2026-04-30 21:20:06 +09:30
|
|
|
|
|
|
|
|
|
|
<!-- 图标 -->
|
|
|
|
|
|
<TextView
|
|
|
|
|
|
android:id="@+id/tvIcon"
|
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
android:fontFamily="@font/iconfont"
|
|
|
|
|
|
android:text=""
|
|
|
|
|
|
android:textColor="@android:color/white"
|
2026-04-30 21:32:19 +09:30
|
|
|
|
android:textSize="60sp" />
|
2026-04-30 21:20:06 +09:30
|
|
|
|
|
|
|
|
|
|
<!-- 标题 -->
|
|
|
|
|
|
<TextView
|
|
|
|
|
|
android:id="@+id/tvTitle"
|
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
android:layout_marginTop="12dp"
|
|
|
|
|
|
android:text="发现新版本"
|
|
|
|
|
|
android:textColor="@android:color/white"
|
2026-04-30 21:32:19 +09:30
|
|
|
|
android:textSize="24sp"
|
2026-04-30 21:20:06 +09:30
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 描述(下载中显示"请勿关机!正在升级系统...") -->
|
|
|
|
|
|
<TextView
|
|
|
|
|
|
android:id="@+id/tvDesc"
|
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
|
android:layout_height="wrap_content"
|
2026-04-30 21:32:19 +09:30
|
|
|
|
android:layout_marginTop="6dp"
|
2026-04-30 21:20:06 +09:30
|
|
|
|
android:textColor="#AAFFFFFF"
|
2026-04-30 21:32:19 +09:30
|
|
|
|
android:textSize="16sp"
|
2026-04-30 21:20:06 +09:30
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 进度条(下载中显示) -->
|
|
|
|
|
|
<FrameLayout
|
|
|
|
|
|
android:id="@+id/progressContainer"
|
|
|
|
|
|
android:layout_width="match_parent"
|
2026-04-30 21:32:19 +09:30
|
|
|
|
android:layout_height="12dp"
|
2026-04-30 21:20:06 +09:30
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
|
|
android:background="#33FFFFFF"
|
|
|
|
|
|
android:visibility="gone">
|
|
|
|
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
|
android:id="@+id/progressBar"
|
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
|
android:background="#4CAF50" />
|
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 进度文字 -->
|
|
|
|
|
|
<TextView
|
|
|
|
|
|
android:id="@+id/tvProgress"
|
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
|
android:layout_height="wrap_content"
|
2026-04-30 21:32:19 +09:30
|
|
|
|
android:layout_marginTop="6dp"
|
2026-04-30 21:20:06 +09:30
|
|
|
|
android:textColor="#AAFFFFFF"
|
2026-04-30 21:32:19 +09:30
|
|
|
|
android:textSize="16sp"
|
2026-04-30 21:20:06 +09:30
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 按钮(立即更新 / 重新下载) -->
|
|
|
|
|
|
<TextView
|
|
|
|
|
|
android:id="@+id/btnAction"
|
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
|
android:layout_height="wrap_content"
|
2026-04-30 21:32:19 +09:30
|
|
|
|
android:layout_marginTop="20dp"
|
2026-04-30 21:20:06 +09:30
|
|
|
|
android:background="@drawable/bg_btn_primary"
|
2026-04-30 21:32:19 +09:30
|
|
|
|
android:paddingHorizontal="32dp"
|
|
|
|
|
|
android:paddingVertical="12dp"
|
2026-04-30 21:20:06 +09:30
|
|
|
|
android:text="立即更新"
|
|
|
|
|
|
android:textColor="@android:color/white"
|
2026-04-30 21:32:19 +09:30
|
|
|
|
android:textSize="18sp" />
|
2026-04-30 21:20:06 +09:30
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
</FrameLayout>
|