- 按钮高度 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>
58 lines
2.0 KiB
XML
58 lines
2.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<!-- QuConfirmDialog 布局:确认弹窗
|
||
结构:半透明遮罩 + 居中内容区 + 底部取消(×)/确认(✓)图标按钮 -->
|
||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||
android:id="@+id/confirmOverlay"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="match_parent"
|
||
android:background="@color/overlay">
|
||
|
||
<LinearLayout
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_gravity="center"
|
||
android:gravity="center"
|
||
android:orientation="vertical"
|
||
android:padding="@dimen/spacing_lg">
|
||
|
||
<!-- 内容区域(由调用方动态设置) -->
|
||
<FrameLayout
|
||
android:id="@+id/confirmContent"
|
||
android:layout_width="match_parent"
|
||
android:layout_height="wrap_content"
|
||
android:layout_marginBottom="@dimen/spacing_xl" />
|
||
|
||
<!-- 底部按钮组(取消 × / 确认 ✓) -->
|
||
<LinearLayout
|
||
android:layout_width="wrap_content"
|
||
android:layout_height="wrap_content"
|
||
android:gravity="center"
|
||
android:orientation="horizontal">
|
||
|
||
<!-- 取消按钮(×) -->
|
||
<TextView
|
||
android:id="@+id/btnCancel"
|
||
android:layout_width="70dp"
|
||
android:layout_height="70dp"
|
||
android:gravity="center"
|
||
android:text="\ue623"
|
||
android:textColor="@color/text_secondary"
|
||
android:textSize="44sp"
|
||
android:layout_marginEnd="@dimen/spacing_xl" />
|
||
|
||
<!-- 确认按钮(✓) -->
|
||
<TextView
|
||
android:id="@+id/btnConfirm"
|
||
android:layout_width="70dp"
|
||
android:layout_height="70dp"
|
||
android:gravity="center"
|
||
android:text="\ue600"
|
||
android:textColor="@color/success"
|
||
android:textSize="44sp" />
|
||
|
||
</LinearLayout>
|
||
|
||
</LinearLayout>
|
||
|
||
</FrameLayout>
|