fix: 设置页字体放大适配老年人
头像 59→72dp, 字母 27→33sp 姓名 20→26sp, 手机号 15→19sp 信息行 17→20sp Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- 设置页(ViewPager2 Page 0)
|
||||
屏幕密度 120dpi, 1dp=0.75px, 换算: px/0.75=dp -->
|
||||
屏幕密度 120dpi, 老年人用户适当放大 -->
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
@@ -30,10 +30,10 @@
|
||||
android:paddingTop="11dp"
|
||||
android:paddingBottom="16dp">
|
||||
|
||||
<!-- 头像 44px → 59dp, 字母 20px → 27sp -->
|
||||
<!-- 头像放大 59→72dp, 字母 27→33sp -->
|
||||
<FrameLayout
|
||||
android:layout_width="59dp"
|
||||
android:layout_height="59dp"
|
||||
android:layout_width="72dp"
|
||||
android:layout_height="72dp"
|
||||
android:layout_marginBottom="11dp">
|
||||
|
||||
<View
|
||||
@@ -47,32 +47,32 @@
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center"
|
||||
android:textColor="@color/text_primary"
|
||||
android:textSize="27sp"
|
||||
android:textSize="33sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
<!-- 姓名 15px → 20sp -->
|
||||
<!-- 姓名放大 20→26sp -->
|
||||
<TextView
|
||||
android:id="@+id/tvUserName"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/text_primary"
|
||||
android:textSize="20sp"
|
||||
android:textSize="26sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<!-- 手机号 11px → 15sp -->
|
||||
<!-- 手机号放大 15→19sp -->
|
||||
<TextView
|
||||
android:id="@+id/tvUserPhone"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/text_secondary"
|
||||
android:textSize="15sp"
|
||||
android:textSize="19sp"
|
||||
android:layout_marginTop="3dp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 设备信息列表 13px → 17sp -->
|
||||
<!-- 设备信息列表 -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
@@ -104,7 +104,7 @@
|
||||
|
||||
</ScrollView>
|
||||
|
||||
<!-- 页面指示器 dot 5px→7dp, active 14px→19dp -->
|
||||
<!-- 页面指示器 -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
@@ -52,21 +52,21 @@
|
||||
<item name="android:paddingBottom">13dp</item>
|
||||
</style>
|
||||
|
||||
<!-- 设置页标签 13px→17sp -->
|
||||
<!-- 设置页标签 放大→20sp -->
|
||||
<style name="ConfigLabel">
|
||||
<item name="android:layout_width">0dp</item>
|
||||
<item name="android:layout_height">wrap_content</item>
|
||||
<item name="android:layout_weight">1</item>
|
||||
<item name="android:textColor">@color/text_secondary</item>
|
||||
<item name="android:textSize">17sp</item>
|
||||
<item name="android:textSize">20sp</item>
|
||||
</style>
|
||||
|
||||
<!-- 设置页值 13px→17sp -->
|
||||
<!-- 设置页值 放大→20sp -->
|
||||
<style name="ConfigValue">
|
||||
<item name="android:layout_width">wrap_content</item>
|
||||
<item name="android:layout_height">wrap_content</item>
|
||||
<item name="android:textColor">@color/text_primary</item>
|
||||
<item name="android:textSize">17sp</item>
|
||||
<item name="android:textSize">20sp</item>
|
||||
<item name="android:textStyle">bold</item>
|
||||
</style>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user