operation_search_dialog.xml 7.14 KB
Newer Older
Lee Jaebin committed
1 2 3 4 5
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/root_layout"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
6
    android:background="@color/operation_bg"
Lee Jaebin committed
7 8 9 10 11
    android:minWidth="500dp"
    android:orientation="vertical">

    <RelativeLayout
        android:id="@+id/toolbar_layout"
12
        style="@style/OperationSearchToolBar"
Lee Jaebin committed
13 14 15 16 17 18 19 20 21 22 23 24
        android:layout_width="match_parent"
        android:layout_height="50dp">

        <TextView
            android:id="@+id/title"
            style="@style/DialogToolBarTitle"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerHorizontal="true"
            android:layout_centerVertical="true"
            android:text="@string/search"
            android:textColor="@color/edt_text"
25
            android:textSize="@dimen/opeartion_title_text_size" />
Lee Jaebin committed
26

27
        <ImageButton
Lee Jaebin committed
28 29 30 31 32
            android:id="@+id/closeBtn"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:layout_centerVertical="true"
33
            android:background="@drawable/ic_operation_close"
Lee Jaebin committed
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
            android:contentDescription="@string/cont_desc" />

    </RelativeLayout>


    <LinearLayout
        android:id="@+id/settingLayout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_margin="10dp"
        android:orientation="horizontal">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:layout_weight="3"
            android:orientation="vertical">

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="55dp"
                android:layout_weight="1">

                <TextView
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:gravity="center_vertical"
62 63
                    android:text="@string/operation_name"
                    android:textColor="@color/operation_search_label_color"
Lee Jaebin committed
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
                    android:textSize="@dimen/app_small_text_size"
                    android:textStyle="bold" />
            </LinearLayout>

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="55dp"
                android:layout_weight="1">

                <TextView
                    android:id="@+id/date_label"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:gravity="center_vertical"
                    android:text="@string/date_label"
79
                    android:textColor="@color/operation_search_label_color"
Lee Jaebin committed
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
                    android:textSize="@dimen/app_small_text_size"
                    android:textStyle="bold" />
            </LinearLayout>

            <LinearLayout
                android:id="@+id/report_type_layout_label"
                android:layout_width="match_parent"
                android:layout_height="55dp"
                android:layout_weight="1"
                android:visibility="gone">

                <TextView
                    android:id="@+id/report_type_label"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:gravity="center_vertical"
96 97
                    android:text="@string/label_operation_report_type"
                    android:textColor="@color/operation_search_label_color"
Lee Jaebin committed
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113
                    android:textSize="@dimen/app_small_text_size"
                    android:textStyle="bold" />
            </LinearLayout>

        </LinearLayout>

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="10dp"
            android:layout_marginLeft="10dp"
            android:layout_weight="1"
            android:gravity="center"
            android:orientation="vertical">

            <jp.agentec.abook.abv.ui.common.view.ABVEditText
114
                android:id="@+id/operation_name"
Lee Jaebin committed
115 116 117
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_marginBottom="10dp"
118
                android:inputType="text"
Lee Jaebin committed
119 120 121 122 123 124 125 126 127 128 129 130 131 132 133
                android:maxLines="1" />

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_weight="1"
                android:gravity="center"
                android:orientation="horizontal">

                <TextView
                    android:id="@+id/start_date"
                    style="@android:style/Widget.Holo.Spinner"
                    android:layout_width="100dp"
                    android:layout_height="match_parent"
                    android:layout_weight="1"
134
                    android:background="@drawable/operation_border"
Lee Jaebin committed
135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151
                    android:gravity="center"
                    android:textColor="@color/text_select"
                    android:textSize="@dimen/text_size_noraml" />

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="match_parent"
                    android:layout_margin="5dp"
                    android:text="~"
                    android:textSize="@dimen/app_large_text_size" />

                <TextView
                    android:id="@+id/end_date"
                    style="@android:style/Widget.Holo.Spinner"
                    android:layout_width="100dp"
                    android:layout_height="match_parent"
                    android:layout_weight="1"
152
                    android:background="@drawable/operation_border"
Lee Jaebin committed
153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173
                    android:gravity="center"
                    android:textColor="@color/text_select"
                    android:textSize="@dimen/text_size_noraml" />
            </LinearLayout>
        </LinearLayout>


    </LinearLayout>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_margin="10dp"
        android:gravity="center"
        android:orientation="horizontal">

        <Button
            android:id="@+id/btn_search"
            android:layout_width="120dp"
            android:layout_height="50dp"
            android:layout_margin="10dp"
174
            android:background="@drawable/operation_radius_frame"
Lee Jaebin committed
175 176 177 178 179 180 181 182
            android:text="@string/search"
            android:textColor="@color/text_color" />

        <Button
            android:id="@+id/btn_clear"
            android:layout_width="120dp"
            android:layout_height="50dp"
            android:layout_margin="10dp"
183
            android:background="@drawable/operation_radius_frame"
Lee Jaebin committed
184 185 186 187 188
            android:text="@string/clear"
            android:textColor="@color/text_color" />

    </LinearLayout>
</LinearLayout>