fix: 放大UI尺寸适配手表小屏
- 按钮高度 40dp→50dp,文字 15sp→20sp - NavBar 图标 14sp→18sp,电量 16sp→20sp - 提示弹窗图标 48sp→56sp - 确认弹窗按钮 36sp→44sp - NavBar 高度 60dp→40dp(图标放大后不需要过高) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -32,23 +32,23 @@
|
|||||||
<!-- 取消按钮(×) -->
|
<!-- 取消按钮(×) -->
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/btnCancel"
|
android:id="@+id/btnCancel"
|
||||||
android:layout_width="60dp"
|
android:layout_width="70dp"
|
||||||
android:layout_height="60dp"
|
android:layout_height="70dp"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:text="\ue623"
|
android:text="\ue623"
|
||||||
android:textColor="@color/text_secondary"
|
android:textColor="@color/text_secondary"
|
||||||
android:textSize="36sp"
|
android:textSize="44sp"
|
||||||
android:layout_marginEnd="@dimen/spacing_xl" />
|
android:layout_marginEnd="@dimen/spacing_xl" />
|
||||||
|
|
||||||
<!-- 确认按钮(✓) -->
|
<!-- 确认按钮(✓) -->
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/btnConfirm"
|
android:id="@+id/btnConfirm"
|
||||||
android:layout_width="60dp"
|
android:layout_width="70dp"
|
||||||
android:layout_height="60dp"
|
android:layout_height="70dp"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:text="\ue600"
|
android:text="\ue600"
|
||||||
android:textColor="@color/success"
|
android:textColor="@color/success"
|
||||||
android:textSize="36sp" />
|
android:textSize="44sp" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
android:id="@+id/tipIcon"
|
android:id="@+id/tipIcon"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:textSize="48sp"
|
android:textSize="56sp"
|
||||||
android:layout_marginBottom="@dimen/spacing_md" />
|
android:layout_marginBottom="@dimen/spacing_md" />
|
||||||
|
|
||||||
<!-- 标题文字 -->
|
<!-- 标题文字 -->
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:text="\ue6bd"
|
android:text="\ue6bd"
|
||||||
android:textColor="@color/text_secondary"
|
android:textColor="@color/text_secondary"
|
||||||
android:textSize="18sp"
|
android:textSize="22sp"
|
||||||
android:visibility="gone" />
|
android:visibility="gone" />
|
||||||
|
|
||||||
<!-- 状态图标组(首页用,默认显示) -->
|
<!-- 状态图标组(首页用,默认显示) -->
|
||||||
@@ -48,8 +48,8 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="\ue6da"
|
android:text="\ue6da"
|
||||||
android:textColor="@color/text_primary"
|
android:textColor="@color/text_primary"
|
||||||
android:textSize="14sp"
|
android:textSize="18sp"
|
||||||
android:paddingEnd="6dp" />
|
android:paddingEnd="8dp" />
|
||||||
|
|
||||||
<!-- 4G 状态 -->
|
<!-- 4G 状态 -->
|
||||||
<TextView
|
<TextView
|
||||||
@@ -58,8 +58,8 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="\ue6dc"
|
android:text="\ue6dc"
|
||||||
android:textColor="@color/text_primary"
|
android:textColor="@color/text_primary"
|
||||||
android:textSize="14sp"
|
android:textSize="18sp"
|
||||||
android:paddingEnd="6dp" />
|
android:paddingEnd="8dp" />
|
||||||
|
|
||||||
<!-- NFC 状态 -->
|
<!-- NFC 状态 -->
|
||||||
<TextView
|
<TextView
|
||||||
@@ -68,7 +68,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="\ue6d8"
|
android:text="\ue6d8"
|
||||||
android:textColor="@color/text_primary"
|
android:textColor="@color/text_primary"
|
||||||
android:textSize="14sp" />
|
android:textSize="18sp" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
@@ -101,7 +101,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="\ue6ce"
|
android:text="\ue6ce"
|
||||||
android:textColor="@color/success"
|
android:textColor="@color/success"
|
||||||
android:textSize="16sp" />
|
android:textSize="20sp" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|||||||
@@ -7,22 +7,22 @@
|
|||||||
<dimen name="safe_area_bottom">16dp</dimen>
|
<dimen name="safe_area_bottom">16dp</dimen>
|
||||||
|
|
||||||
<!-- NavBar -->
|
<!-- NavBar -->
|
||||||
<dimen name="nav_bar_height">60dp</dimen>
|
<dimen name="nav_bar_height">40dp</dimen>
|
||||||
|
|
||||||
<!-- 字体大小 -->
|
<!-- 字体大小(适配 2.7×3.3 英寸小屏) -->
|
||||||
<dimen name="text_title">18sp</dimen>
|
<dimen name="text_title">22sp</dimen>
|
||||||
<dimen name="text_body">15sp</dimen>
|
<dimen name="text_body">18sp</dimen>
|
||||||
<dimen name="text_caption">13sp</dimen>
|
<dimen name="text_caption">15sp</dimen>
|
||||||
<dimen name="text_small">11sp</dimen>
|
<dimen name="text_small">13sp</dimen>
|
||||||
<dimen name="text_button">15sp</dimen>
|
<dimen name="text_button">20sp</dimen>
|
||||||
<dimen name="text_button_small">13sp</dimen>
|
<dimen name="text_button_small">16sp</dimen>
|
||||||
|
|
||||||
<!-- 间距 -->
|
<!-- 间距 -->
|
||||||
<dimen name="spacing_xs">4dp</dimen>
|
<dimen name="spacing_xs">4dp</dimen>
|
||||||
<dimen name="spacing_sm">8dp</dimen>
|
<dimen name="spacing_sm">6dp</dimen>
|
||||||
<dimen name="spacing_md">12dp</dimen>
|
<dimen name="spacing_md">10dp</dimen>
|
||||||
<dimen name="spacing_lg">16dp</dimen>
|
<dimen name="spacing_lg">14dp</dimen>
|
||||||
<dimen name="spacing_xl">24dp</dimen>
|
<dimen name="spacing_xl">20dp</dimen>
|
||||||
|
|
||||||
<!-- 圆角 -->
|
<!-- 圆角 -->
|
||||||
<dimen name="corner_radius_sm">4dp</dimen>
|
<dimen name="corner_radius_sm">4dp</dimen>
|
||||||
@@ -30,15 +30,15 @@
|
|||||||
<dimen name="corner_radius_lg">16dp</dimen>
|
<dimen name="corner_radius_lg">16dp</dimen>
|
||||||
<dimen name="corner_radius_button">8dp</dimen>
|
<dimen name="corner_radius_button">8dp</dimen>
|
||||||
|
|
||||||
<!-- 按钮 -->
|
<!-- 按钮(旧版 156upx ≈ 50dp) -->
|
||||||
<dimen name="button_height">40dp</dimen>
|
<dimen name="button_height">50dp</dimen>
|
||||||
<dimen name="button_half_width">120dp</dimen>
|
<dimen name="button_half_width">120dp</dimen>
|
||||||
|
|
||||||
<!-- 触摸区域最小尺寸 -->
|
<!-- 触摸区域最小尺寸 -->
|
||||||
<dimen name="touch_min_size">40dp</dimen>
|
<dimen name="touch_min_size">44dp</dimen>
|
||||||
|
|
||||||
<!-- 图标 -->
|
<!-- 图标 -->
|
||||||
<dimen name="icon_sm">16dp</dimen>
|
<dimen name="icon_sm">18dp</dimen>
|
||||||
<dimen name="icon_md">24dp</dimen>
|
<dimen name="icon_md">26dp</dimen>
|
||||||
<dimen name="icon_lg">32dp</dimen>
|
<dimen name="icon_lg">36dp</dimen>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
Reference in New Issue
Block a user