<?xml version="1.0" encoding="utf-8"?>
<DirectionalLayout
    xmlns:ohos="http://schemas.huawei.com/res/ohos"
    ohos:height="match_parent"
    ohos:width="match_parent"
    ohos:alignment="center"
    ohos:orientation="vertical"
    ohos:background_element="#80000000">
    <!-- 半透明黑色背景 -->

    <!-- 对话框内容容器（白色圆角卡片） -->
    <DirectionalLayout
        ohos:id="$+id:dialog_container"
        ohos:height="match_content"
        ohos:width="280vp"
        ohos:orientation="vertical"
        ohos:background_element="$graphic:background_circle_16"
        ohos:padding="24vp">

        <!-- 标题 -->
        <Text
            ohos:id="$+id:dialog_title"
            ohos:height="match_content"
            ohos:width="match_parent"
            ohos:text="提示"
            ohos:text_size="18fp"
            ohos:text_color="#666666"
            ohos:text_weight="700"
            ohos:text_alignment="center"
            ohos:margin="0vp"/>

        <!-- 消息内容 -->
        <Text
            ohos:id="$+id:dialog_message"
            ohos:height="match_content"
            ohos:width="match_parent"
            ohos:text="确认要执行此操作吗？"
            ohos:text_size="15fp"
            ohos:text_color="#333333"
            ohos:text_alignment="center"
            ohos:top_margin="16vp"
            ohos:multiple_lines="true"/>

        <!-- 按钮容器 -->
        <DirectionalLayout
            ohos:height="match_content"
            ohos:width="match_parent"
            ohos:orientation="horizontal"
            ohos:top_margin="24vp"
            ohos:alignment="center">

            <!-- 取消按钮（左边） -->
            <Button
                ohos:id="$+id:btn_cancel"
                ohos:height="40vp"
                ohos:width="0vp"
                ohos:weight="1"
                ohos:text="取消"
                ohos:text_size="15fp"
                ohos:text_color="#FFFFFF"
                ohos:background_element="$graphic:button_cancel"
                ohos:right_margin="8vp"/>

            <!-- 确定按钮（右边） -->
            <Button
                ohos:id="$+id:btn_confirm"
                ohos:height="40vp"
                ohos:width="0vp"
                ohos:weight="1"
                ohos:text="确定"
                ohos:text_size="15fp"
                ohos:text_color="#FFFFFF"
                ohos:background_element="$graphic:button"
                ohos:left_margin="8vp"/>

        </DirectionalLayout>

    </DirectionalLayout>

</DirectionalLayout>

