58 lines
2.2 KiB
XML
58 lines
2.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
|
<!-- QuTipDialog 布局:提示弹窗(成功/警告/错误)
|
|||
|
|
结构:全屏遮罩 + 居中内容(图标 + 标题 + 描述 + 倒计时返回按钮) -->
|
|||
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|||
|
|
android:layout_width="match_parent"
|
|||
|
|
android:layout_height="match_parent"
|
|||
|
|
android:background="@color/background">
|
|||
|
|
|
|||
|
|
<LinearLayout
|
|||
|
|
android:layout_width="match_parent"
|
|||
|
|
android:layout_height="match_parent"
|
|||
|
|
android:gravity="center"
|
|||
|
|
android:orientation="vertical"
|
|||
|
|
android:padding="@dimen/spacing_lg">
|
|||
|
|
|
|||
|
|
<!-- 状态图标(成功✓ / 警告! / 错误×) -->
|
|||
|
|
<TextView
|
|||
|
|
android:id="@+id/tipIcon"
|
|||
|
|
android:layout_width="wrap_content"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:textSize="48sp"
|
|||
|
|
android:layout_marginBottom="@dimen/spacing_md" />
|
|||
|
|
|
|||
|
|
<!-- 标题文字 -->
|
|||
|
|
<TextView
|
|||
|
|
android:id="@+id/tipTitle"
|
|||
|
|
android:layout_width="wrap_content"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:textColor="@color/text_primary"
|
|||
|
|
android:textSize="@dimen/text_title"
|
|||
|
|
android:textStyle="bold"
|
|||
|
|
android:layout_marginBottom="@dimen/spacing_sm" />
|
|||
|
|
|
|||
|
|
<!-- 描述文字(可选) -->
|
|||
|
|
<TextView
|
|||
|
|
android:id="@+id/tipDesc"
|
|||
|
|
android:layout_width="wrap_content"
|
|||
|
|
android:layout_height="wrap_content"
|
|||
|
|
android:textColor="@color/text_secondary"
|
|||
|
|
android:textSize="@dimen/text_caption"
|
|||
|
|
android:gravity="center"
|
|||
|
|
android:visibility="gone"
|
|||
|
|
android:layout_marginBottom="@dimen/spacing_lg" />
|
|||
|
|
|
|||
|
|
<!-- 倒计时返回按钮(显示"返回 3s") -->
|
|||
|
|
<TextView
|
|||
|
|
android:id="@+id/tipBackBtn"
|
|||
|
|
android:layout_width="@dimen/touch_min_size"
|
|||
|
|
android:layout_height="@dimen/touch_min_size"
|
|||
|
|
android:gravity="center"
|
|||
|
|
android:textColor="@color/text_secondary"
|
|||
|
|
android:textSize="@dimen/text_caption"
|
|||
|
|
android:visibility="gone" />
|
|||
|
|
|
|||
|
|
</LinearLayout>
|
|||
|
|
|
|||
|
|
</FrameLayout>
|