<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/smart_show_round_dialog_bg"
    android:orientation="vertical">

    <TextView
        android:id="@id/smart_show_dialog_title_view"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:gravity="center"
        android:paddingTop="16dp"
        android:textColor="#323232"
        android:textSize="19sp"
        android:visibility="gone" />

    <FrameLayout
        android:id="@+id/smart_show_dialog_body_wrapper"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:minHeight="80dp"
        android:paddingLeft="20dp"
        android:paddingTop="16dp"
        android:paddingRight="20dp"
        android:paddingBottom="16dp">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:orientation="vertical">

            <RelativeLayout
                android:layout_width="match_parent"
                android:layout_height="60dp">

                <EditText
                    android:id="@+id/smart_show_input_edt"
                    android:layout_width="100dp"
                    android:layout_height="40dp"
                    android:layout_centerInParent="true"
                    android:layout_gravity="center"
                    android:background="@drawable/smart_show_round_edt_bg"
                    android:cursorVisible="true"
                    android:gravity="center"
                    android:lineSpacingExtra="2dp"
                    android:lines="1"
                    android:padding="4dp"
                    android:singleLine="true"
                    android:textColor="#333333"
                    android:textColorHint="@color/default_edt_hint_color"
                    android:textCursorDrawable="@drawable/smart_show_edt_cursor_drawable"
                    android:textSize="15sp" />

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:layout_toRightOf="@id/smart_show_input_edt"
                    android:orientation="horizontal"
                    android:paddingLeft="10dp">

                    <TextView
                        android:id="@+id/smart_show_num_unit_left_parentheses"
                        android:layout_width="wrap_content"
                        android:layout_height="match_parent"
                        android:gravity="center"
                        android:text="("
                        android:textColor="@color/default_text_color"
                        android:textSize="13sp" />

                    <TextView
                        android:id="@+id/smart_show_num_unit"
                        android:layout_width="wrap_content"
                        android:layout_height="match_parent"
                        android:ellipsize="end"
                        android:gravity="center"
                        android:maxLines="2"
                        android:textColor="@color/default_text_color"
                        android:textSize="13sp" />

                    <TextView
                        android:id="@+id/smart_show_num_unit_right_parentheses"
                        android:layout_width="wrap_content"
                        android:layout_height="match_parent"
                        android:gravity="center"
                        android:text=")"
                        android:textColor="@color/default_text_color"
                        android:textSize="13sp" />

                </LinearLayout>

            </RelativeLayout>

            <LinearLayout
                android:id="@+id/smart_show_error_tip_line"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="vertical"
                android:visibility="gone">

                <View
                    android:layout_width="match_parent"
                    android:layout_height="0.3dp"
                    android:background="#cccccc" />

                <TextView
                    android:id="@+id/smart_show_error_tip"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center_horizontal"
                    android:ellipsize="end"
                    android:maxLines="3"
                    android:padding="4dp"
                    android:text="错误："
                    android:textColor="#ff0000"
                    android:textSize="11sp" />

            </LinearLayout>

        </LinearLayout>
    </FrameLayout>


    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="44dp"
        android:orientation="vertical">

        <View
            android:layout_width="match_parent"
            android:layout_height="0.5dp"
            android:background="#cccccc" />

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="horizontal">

            <TextView
                android:id="@id/smart_show_dialog_cancel_btn"
                style="@style/smart_show_dialog_button"
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_weight="1"
                android:text="取消"
                android:textColor="@color/default_cancel_btn_color" />

            <View
                android:id="@+id/separator_between_btn"
                android:layout_width="0.5dp"
                android:layout_height="match_parent"
                android:background="#cccccc" />

            <TextView
                android:id="@id/smart_show_dialog_confirm_btn"
                style="@style/smart_show_dialog_button"
                android:layout_width="0dp"
                android:layout_height="match_parent"
                android:layout_weight="1"
                android:text="确定"
                android:textColor="@color/colorPrimary" />
        </LinearLayout>
    </LinearLayout>
</LinearLayout>
