2026-04-27 11:26:50 +09:30
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2026-04-27 13:50:25 +09:30
|
|
|
<!-- 首页布局:NavBar + 硬件验证 demo -->
|
2026-04-27 11:26:50 +09:30
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:background="@color/background"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
2026-04-27 13:50:25 +09:30
|
|
|
<!-- 顶部导航栏 -->
|
2026-04-27 11:26:50 +09:30
|
|
|
<include layout="@layout/layout_nav_bar" />
|
|
|
|
|
|
|
|
|
|
<!-- 内容区域 -->
|
|
|
|
|
<ScrollView
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:paddingStart="@dimen/safe_area_left"
|
|
|
|
|
android:paddingEnd="@dimen/safe_area_right"
|
|
|
|
|
android:paddingBottom="@dimen/safe_area_bottom">
|
|
|
|
|
|
2026-04-27 13:50:25 +09:30
|
|
|
<!-- 系统状态信息 -->
|
2026-04-27 11:26:50 +09:30
|
|
|
<TextView
|
2026-04-27 13:50:25 +09:30
|
|
|
android:id="@+id/tvStatus"
|
2026-04-27 11:26:50 +09:30
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:textColor="@color/text_primary"
|
|
|
|
|
android:textSize="@dimen/text_small"
|
|
|
|
|
android:lineSpacingExtra="3dp"
|
2026-04-27 13:50:25 +09:30
|
|
|
android:layout_marginBottom="@dimen/spacing_sm" />
|
2026-04-27 11:26:50 +09:30
|
|
|
|
2026-04-27 13:50:25 +09:30
|
|
|
<!-- 屏幕控制测试 -->
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/btnScreenOff"
|
|
|
|
|
style="@style/ActionButton.Warning"
|
|
|
|
|
android:text="熄屏测试(3秒后亮屏)"
|
|
|
|
|
android:layout_marginBottom="@dimen/spacing_sm" />
|
|
|
|
|
|
|
|
|
|
<!-- 振动测试 -->
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/btnVibrate"
|
|
|
|
|
style="@style/ActionButton.Primary"
|
|
|
|
|
android:text="振动测试"
|
|
|
|
|
android:layout_marginBottom="@dimen/spacing_sm" />
|
|
|
|
|
|
|
|
|
|
<!-- NFC 测试 -->
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/btnNfcScan"
|
|
|
|
|
style="@style/ActionButton.Success"
|
|
|
|
|
android:text="NFC 读卡测试"
|
|
|
|
|
android:layout_marginBottom="@dimen/spacing_sm" />
|
|
|
|
|
|
|
|
|
|
<!-- 弹窗测试 -->
|
2026-04-27 11:26:50 +09:30
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/btnShowTip"
|
|
|
|
|
style="@style/ActionButton.Grey"
|
2026-04-27 13:50:25 +09:30
|
|
|
android:text="提示弹窗测试"
|
2026-04-27 11:26:50 +09:30
|
|
|
android:layout_marginBottom="@dimen/spacing_sm" />
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
</ScrollView>
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|