2026-04-27 18:37:06 +09:30
|
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2026-04-27 19:32:15 +09:30
|
|
|
|
<!-- 设置页(ViewPager2 Page 0)
|
|
|
|
|
|
屏幕密度 120dpi, 1dp=0.75px, 换算: px/0.75=dp -->
|
2026-04-27 18:37:06 +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 19:32:15 +09:30
|
|
|
|
android:paddingStart="21dp"
|
|
|
|
|
|
android:paddingTop="27dp"
|
|
|
|
|
|
android:paddingEnd="21dp"
|
|
|
|
|
|
android:paddingBottom="27dp">
|
2026-04-27 18:37:06 +09:30
|
|
|
|
|
2026-04-27 19:32:15 +09:30
|
|
|
|
<!-- 状态栏 18px → 24dp -->
|
2026-04-27 18:37:06 +09:30
|
|
|
|
<com.xiaoqu.watch.ui.widget.StatusBarView
|
|
|
|
|
|
android:id="@+id/statusBar"
|
|
|
|
|
|
android:layout_width="match_parent"
|
2026-04-27 19:32:15 +09:30
|
|
|
|
android:layout_height="24dp" />
|
2026-04-27 18:37:06 +09:30
|
|
|
|
|
|
|
|
|
|
<!-- 可滚动内容区 -->
|
|
|
|
|
|
<ScrollView
|
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
|
android:layout_height="0dp"
|
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
|
android:scrollbars="none">
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
2026-04-27 19:32:15 +09:30
|
|
|
|
<!-- 用户信息区域 -->
|
2026-04-27 18:37:06 +09:30
|
|
|
|
<LinearLayout
|
|
|
|
|
|
android:id="@+id/userBlock"
|
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
|
android:orientation="vertical"
|
2026-04-27 19:32:15 +09:30
|
|
|
|
android:paddingTop="11dp"
|
|
|
|
|
|
android:paddingBottom="16dp">
|
2026-04-27 18:37:06 +09:30
|
|
|
|
|
2026-04-27 19:32:15 +09:30
|
|
|
|
<!-- 头像 44px → 59dp, 字母 20px → 27sp -->
|
2026-04-27 18:37:06 +09:30
|
|
|
|
<FrameLayout
|
2026-04-27 19:32:15 +09:30
|
|
|
|
android:layout_width="59dp"
|
|
|
|
|
|
android:layout_height="59dp"
|
|
|
|
|
|
android:layout_marginBottom="11dp">
|
2026-04-27 18:37:06 +09:30
|
|
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
|
android:background="@drawable/bg_avatar" />
|
|
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
|
android:id="@+id/tvAvatarLetter"
|
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
|
android:gravity="center"
|
|
|
|
|
|
android:textColor="@color/text_primary"
|
2026-04-27 19:32:15 +09:30
|
|
|
|
android:textSize="27sp"
|
2026-04-27 18:37:06 +09:30
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
2026-04-27 19:32:15 +09:30
|
|
|
|
<!-- 姓名 15px → 20sp -->
|
2026-04-27 18:37:06 +09:30
|
|
|
|
<TextView
|
|
|
|
|
|
android:id="@+id/tvUserName"
|
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
android:textColor="@color/text_primary"
|
2026-04-27 18:55:22 +09:30
|
|
|
|
android:textSize="20sp"
|
2026-04-27 18:37:06 +09:30
|
|
|
|
android:textStyle="bold" />
|
|
|
|
|
|
|
2026-04-27 19:32:15 +09:30
|
|
|
|
<!-- 手机号 11px → 15sp -->
|
2026-04-27 18:37:06 +09:30
|
|
|
|
<TextView
|
|
|
|
|
|
android:id="@+id/tvUserPhone"
|
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
android:textColor="@color/text_secondary"
|
2026-04-27 19:32:15 +09:30
|
|
|
|
android:textSize="15sp"
|
|
|
|
|
|
android:layout_marginTop="3dp" />
|
2026-04-27 18:37:06 +09:30
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
2026-04-27 19:32:15 +09:30
|
|
|
|
<!-- 设备信息列表 13px → 17sp -->
|
2026-04-27 18:37:06 +09:30
|
|
|
|
<LinearLayout
|
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout style="@style/ConfigRow">
|
|
|
|
|
|
<TextView style="@style/ConfigLabel" android:text="设备型号" />
|
|
|
|
|
|
<TextView android:id="@+id/tvModel" style="@style/ConfigValue" />
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout style="@style/ConfigRow">
|
|
|
|
|
|
<TextView style="@style/ConfigLabel" android:text="系统版本" />
|
|
|
|
|
|
<TextView android:id="@+id/tvOsVersion" style="@style/ConfigValue" />
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout style="@style/ConfigRow">
|
|
|
|
|
|
<TextView style="@style/ConfigLabel" android:text="IMEI" />
|
|
|
|
|
|
<TextView android:id="@+id/tvImei" style="@style/ConfigValue" />
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
<LinearLayout style="@style/ConfigRow">
|
|
|
|
|
|
<TextView style="@style/ConfigLabel" android:text="App 版本" />
|
|
|
|
|
|
<TextView android:id="@+id/tvAppVersion" style="@style/ConfigValue" />
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
</ScrollView>
|
|
|
|
|
|
|
2026-04-27 19:32:15 +09:30
|
|
|
|
<!-- 页面指示器 dot 5px→7dp, active 14px→19dp -->
|
2026-04-27 18:37:06 +09:30
|
|
|
|
<LinearLayout
|
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
android:gravity="center"
|
2026-04-27 19:32:15 +09:30
|
|
|
|
android:paddingTop="13dp">
|
2026-04-27 18:37:06 +09:30
|
|
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
|
android:id="@+id/indConfig0"
|
2026-04-27 19:32:15 +09:30
|
|
|
|
android:layout_width="19dp"
|
|
|
|
|
|
android:layout_height="7dp"
|
|
|
|
|
|
android:layout_marginEnd="7dp"
|
2026-04-27 18:37:06 +09:30
|
|
|
|
android:background="@drawable/indicator_dot_active" />
|
|
|
|
|
|
|
|
|
|
|
|
<View
|
|
|
|
|
|
android:id="@+id/indConfig1"
|
2026-04-27 19:32:15 +09:30
|
|
|
|
android:layout_width="7dp"
|
|
|
|
|
|
android:layout_height="7dp"
|
2026-04-27 18:37:06 +09:30
|
|
|
|
android:background="@drawable/indicator_dot_inactive" />
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|