头像 59→72dp, 字母 27→33sp 姓名 20→26sp, 手机号 15→19sp 信息行 17→20sp Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
130 lines
4.8 KiB
XML
130 lines
4.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<!-- 设置页(ViewPager2 Page 0)
|
||
屏幕密度 120dpi, 老年人用户适当放大 -->
|
||
<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"
|
||
android:paddingBottom="27dp">
|
||
|
||
<!-- 可滚动内容区 -->
|
||
<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">
|
||
|
||
<!-- 用户信息区域 -->
|
||
<LinearLayout
|
||
android:id="@+id/userBlock"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:gravity="center"
|
||
android:orientation="vertical"
|
||
android:paddingTop="11dp"
|
||
android:paddingBottom="16dp">
|
||
|
||
<!-- 头像放大 59→72dp, 字母 27→33sp -->
|
||
<FrameLayout
|
||
android:layout_width="72dp"
|
||
android:layout_height="72dp"
|
||
android:layout_marginBottom="11dp">
|
||
|
||
<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"
|
||
android:textSize="33sp"
|
||
android:textStyle="bold" />
|
||
|
||
</FrameLayout>
|
||
|
||
<!-- 姓名放大 20→26sp -->
|
||
<TextView
|
||
android:id="@+id/tvUserName"
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:textColor="@color/text_primary"
|
||
android:textSize="26sp"
|
||
android:textStyle="bold" />
|
||
|
||
<!-- 手机号放大 15→19sp -->
|
||
<TextView
|
||
android:id="@+id/tvUserPhone"
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:textColor="@color/text_secondary"
|
||
android:textSize="19sp"
|
||
android:layout_marginTop="3dp" />
|
||
|
||
</LinearLayout>
|
||
|
||
<!-- 设备信息列表 -->
|
||
<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>
|
||
|
||
<!-- 页面指示器 -->
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:gravity="center"
|
||
android:paddingTop="13dp">
|
||
|
||
<View
|
||
android:id="@+id/indConfig0"
|
||
android:layout_width="19dp"
|
||
android:layout_height="7dp"
|
||
android:layout_marginEnd="7dp"
|
||
android:background="@drawable/indicator_dot_active" />
|
||
|
||
<View
|
||
android:id="@+id/indConfig1"
|
||
android:layout_width="7dp"
|
||
android:layout_height="7dp"
|
||
android:background="@drawable/indicator_dot_inactive" />
|
||
|
||
</LinearLayout>
|
||
|
||
</LinearLayout>
|