<?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:padding="@dimen/lib_dp_5"
    app:cardCornerRadius="@dimen/lib_dp_10">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@color/lib_dialog_bg_color"
        android:orientation="vertical">

        <TextView
            android:id="@+id/dialogTitleView"
            android:layout_width="match_parent"
            android:layout_height="@dimen/lib_dp_45"
            android:fontFamily="sans-serif-medium"
            android:gravity="center"
            android:text="请设置标题"
            android:textColor="@color/lib_text_color"
            android:textSize="@dimen/lib_sp_16" />

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="@dimen/titleViewHeight"
            android:layout_marginHorizontal="@dimen/lib_dp_20"
            android:gravity="center_vertical">

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="条件："
                android:textColor="@color/black"
                android:textSize="@dimen/sp_16" />

            <LinearLayout
                android:layout_width="0dp"
                android:layout_height="@dimen/dp_40"
                android:layout_weight="1"
                android:background="@drawable/dialog_bg_hint_layout">

                <Spinner
                    android:id="@+id/dialogSpinnerView"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:spinnerMode="dropdown" />
            </LinearLayout>
        </LinearLayout>

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="@dimen/titleViewHeight"
            android:layout_marginHorizontal="@dimen/lib_dp_20"
            android:layout_marginVertical="@dimen/dp_10"
            android:gravity="center_vertical">

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="内容："
                android:textColor="@color/black"
                android:textSize="@dimen/sp_16" />

            <LinearLayout
                android:layout_width="0dp"
                android:layout_height="@dimen/dp_40"
                android:layout_weight="1"
                android:background="@drawable/dialog_bg_hint_layout">

                <androidx.appcompat.widget.AppCompatAutoCompleteTextView
                    android:id="@+id/dialogInputView"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:background="@null"
                    android:completionThreshold="2"
                    android:hint="请输入查询条件"
                    android:paddingHorizontal="@dimen/lib_dp_5"
                    android:paddingVertical="@dimen/lib_dp_7"
                    android:textColor="@color/lib_text_color"
                    android:textColorHint="@color/lib_hint_color"
                    android:textSize="@dimen/lib_sp_16" />
            </LinearLayout>
        </LinearLayout>

        <View
            android:layout_width="match_parent"
            android:layout_height="@dimen/lib_px_1"
            android:background="@color/lib_line_color" />

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="@dimen/lib_dp_45"
            android:orientation="horizontal">

            <Button
                android:id="@+id/dialogCancelButton"
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_weight="1"
                android:background="@drawable/dialog_button_selector"
                android:gravity="center"
                android:text="取消"
                android:textColor="@color/red"
                android:textSize="@dimen/lib_sp_16" />

            <View
                android:layout_width="@dimen/lib_px_1"
                android:layout_height="match_parent"
                android:background="@color/lib_line_color" />

            <Button
                android:id="@+id/dialogConfirmButton"
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_weight="1"
                android:background="@drawable/dialog_button_selector"
                android:gravity="center"
                android:text="确定"
                android:textColor="@color/blue"
                android:textSize="@dimen/lib_sp_16" />
        </LinearLayout>
    </LinearLayout>
</androidx.cardview.widget.CardView>