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="60dp"
|
|||
|
|
android:layout_height="60dp"
|
|||
|
|
android:gravity="center"
|
|||
|
|
android:text="\ue623"
|
|||
|
|
android:textColor="@color/text_secondary"
|
|||
|
|
android:textSize="36sp"
|
|||
|
|
android:layout_marginEnd="@dimen/spacing_xl" />
|
|||
|
|
|
|||
|
|
<!-- 确认按钮(✓) -->
|
|||
|
|
<TextView
|
|||
|
|
android:id="@+id/btnConfirm"
|
|||
|
|
android:layout_width="60dp"
|
|||
|
|
android:layout_height="60dp"
|
|||
|
|
android:gravity="center"
|
|||
|
|
android:text="\ue600"
|
|||
|
|
android:textColor="@color/success"
|
|||
|
|
android:textSize="36sp" />
|
|||
|
|
|
|||
|
|
</LinearLayout>
|
|||
|
|
|
|||
|
|
</LinearLayout>
|
|||
|
|
|
|||
|
|
</FrameLayout>
|