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

    <LinearLayout
        android:layout_width="fill_parent"
        android:layout_height="50dp"
        android:layout_marginLeft="5sp"
        android:layout_marginRight="5sp"
        android:layout_marginTop="1sp"
        android:background="@drawable/black"
        android:orientation="horizontal" >

        <ImageButton
            android:id="@+id/imageButton15"
            android:layout_width="50dp"
            android:layout_height="fill_parent"
            android:contentDescription="@string/desc"
            android:scaleType="fitXY"
            android:src="@drawable/widget_search" />

        <ImageButton
            android:id="@+id/imageButton16"
            android:layout_width="50dp"
            android:layout_height="fill_parent"
            android:contentDescription="@string/desc"
            android:scaleType="fitXY"
            android:src="@drawable/reset" />

        <EditText
            android:id="@+id/edSearch"
            android:layout_width="match_parent"
            android:layout_height="fill_parent"
            android:layout_gravity="left"
            android:layout_marginLeft="5sp"
            android:layout_marginTop="3sp"
            android:background="@drawable/keypad_edit"
            android:hint="請輸入貨號或品名關鍵字"
			android:inputType="textEmailAddress"
            android:textSize="16sp" />
    </LinearLayout>

    
    <Gallery
        android:id="@+id/myGallery1"
        android:layout_width="fill_parent"
        android:layout_height="100dp"
        android:layout_marginTop="5sp"
        android:gravity="bottom" />

    <LinearLayout
        android:layout_width="fill_parent"
        android:layout_height="40dp"
        android:layout_marginLeft="5sp"
        android:layout_marginRight="5sp"
        android:layout_marginTop="1sp"
        android:background="@drawable/black"
        android:orientation="horizontal" >

        <Button
            android:id="@+id/save_20"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_margin="1sp"
            android:layout_weight="1.0"
            android:background="@drawable/keypad_count1"
            android:text="開始配貨"
            android:textSize="24sp" />

        <Button
            android:id="@+id/auto_s"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_margin="1sp"
            android:layout_weight="1.2"
            android:background="@drawable/keypad_red"
            android:text="預購配貨"
            android:textSize="24sp" />

        <Button
            android:id="@+id/deptord"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_margin="1sp"
            android:layout_weight="1.2"
            android:background="@drawable/keypad_red"
            android:text="配貨單號"
            android:textSize="24sp" />

        <TextView
            android:id="@+id/ed_deptord"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_margin="1sp"
            android:layout_weight="1.0"
            android:background="@drawable/keypad_red"
            android:text="15051101"
            android:textSize="24sp" />
    </LinearLayout>

    <LinearLayout
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_marginLeft="5sp"
        android:layout_marginTop="2sp"
        android:orientation="horizontal" >

        <ImageView
            android:id="@+id/imageView105"
            android:layout_width="100dp"
            android:layout_height="150dp"
            android:contentDescription="@string/desc"
            android:src="@drawable/black" />

        <LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_weight="1.0"
            android:orientation="horizontal" >

            <LinearLayout
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:layout_marginTop="1sp"
                android:layout_weight="1.0"
                android:orientation="vertical" >

                <LinearLayout
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"
                    android:layout_weight="1.0"
                    android:orientation="horizontal" >

                    <Button
                        android:id="@+id/btn_bsave"
                        android:layout_width="fill_parent"
                        android:layout_height="fill_parent"
                        android:layout_margin="1sp"
                        android:background="@drawable/keypad_count1"
                        android:text="暫存"
                        android:textSize="24sp" />
                </LinearLayout>

                <LinearLayout
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"
                    android:layout_weight="1.0"
                    android:orientation="horizontal" >

                    <Button
                        android:id="@+id/btn_number_7"
                        android:layout_width="fill_parent"
                        android:layout_height="fill_parent"
                        android:layout_margin="1sp"
                        android:layout_weight="1.0"
                        android:background="@drawable/keypad_count1"
                        android:text="7"
                        android:textSize="24sp" />

                    <Button
                        android:id="@+id/btn_number_8"
                        android:layout_width="fill_parent"
                        android:layout_height="fill_parent"
                        android:layout_margin="1sp"
                        android:layout_weight="1.0"
                        android:background="@drawable/keypad_count1"
                        android:text="8"
                        android:textSize="24sp" />

                    <Button
                        android:id="@+id/btn_number_9"
                        android:layout_width="fill_parent"
                        android:layout_height="fill_parent"
                        android:layout_margin="1sp"
                        android:layout_weight="1.0"
                        android:background="@drawable/keypad_count1"
                        android:text="9"
                        android:textSize="24sp" />
                </LinearLayout>

                <LinearLayout
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"
                    android:layout_weight="1.0"
                    android:orientation="horizontal" >

                    <Button
                        android:id="@+id/btn_number_4"
                        android:layout_width="fill_parent"
                        android:layout_height="fill_parent"
                        android:layout_margin="1sp"
                        android:layout_weight="1.0"
                        android:background="@drawable/keypad_count1"
                        android:text="4"
                        android:textSize="24sp" />

                    <Button
                        android:id="@+id/btn_number_5"
                        android:layout_width="fill_parent"
                        android:layout_height="fill_parent"
                        android:layout_margin="1sp"
                        android:layout_weight="1.0"
                        android:background="@drawable/keypad_count1"
                        android:text="5"
                        android:textSize="24sp" />

                    <Button
                        android:id="@+id/btn_number_6"
                        android:layout_width="fill_parent"
                        android:layout_height="fill_parent"
                        android:layout_margin="1sp"
                        android:layout_weight="1.0"
                        android:background="@drawable/keypad_count1"
                        android:text="6"
                        android:textSize="24sp" />
                </LinearLayout>

                <LinearLayout
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"
                    android:layout_weight="1.0"
                    android:orientation="horizontal" >

                    <Button
                        android:id="@+id/btn_number_1"
                        android:layout_width="fill_parent"
                        android:layout_height="fill_parent"
                        android:layout_margin="1sp"
                        android:layout_weight="1.0"
                        android:background="@drawable/keypad_count1"
                        android:text="1"
                        android:textSize="24sp" />

                    <Button
                        android:id="@+id/btn_number_2"
                        android:layout_width="fill_parent"
                        android:layout_height="fill_parent"
                        android:layout_margin="1sp"
                        android:layout_weight="1.0"
                        android:background="@drawable/keypad_count1"
                        android:text="2"
                        android:textSize="24sp" />

                    <Button
                        android:id="@+id/btn_number_3"
                        android:layout_width="fill_parent"
                        android:layout_height="fill_parent"
                        android:layout_margin="1sp"
                        android:layout_weight="1.0"
                        android:background="@drawable/keypad_count1"
                        android:text="3"
                        android:textSize="24sp" />
                </LinearLayout>

                <LinearLayout
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"
                    android:layout_weight="1.0"
                    android:orientation="horizontal" >

                    <Button
                        android:id="@+id/btn_clean_number"
                        android:layout_width="fill_parent"
                        android:layout_height="fill_parent"
                        android:layout_margin="1sp"
                        android:layout_weight="1.0"
                        android:background="@drawable/keypad_count3"
                        android:text="C"
                        android:textColor="#FF0000"
                        android:textSize="24sp" />

                    <Button
                        android:id="@+id/btn_number_0"
                        android:layout_width="fill_parent"
                        android:layout_height="fill_parent"
                        android:layout_margin="1sp"
                        android:layout_weight="1.0"
                        android:background="@drawable/keypad_count1"
                        android:text="0"
                        android:textSize="24sp" />

                    <Button
                        android:id="@+id/btn_opreate_plus"
                        android:layout_width="fill_parent"
                        android:layout_height="fill_parent"
                        android:layout_margin="1sp"
                        android:layout_weight="1.0"
                        android:background="@drawable/keypad_count_focus"
                        android:text="+"
                        android:textColor="#FF0000"
                        android:textSize="24sp" />
                </LinearLayout>
            </LinearLayout>

            <LinearLayout
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:layout_marginRight="3sp"
                android:layout_marginTop="2sp"
                android:layout_weight="1.3"
                android:orientation="vertical" >

                <LinearLayout
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"
                    android:layout_weight="1.0"
                    android:orientation="horizontal" >

                    <EditText
                        android:id="@+id/ed_choiced"
                        android:layout_width="fill_parent"
                        android:layout_height="fill_parent"
                        android:layout_margin="1sp"
                        android:background="@drawable/keypad_count4"
                    	android:gravity="right|center"
                    	android:maxLines="1"
            			android:inputType="textEmailAddress"
            			android:digits="-1234567890"
                        android:textSize="24sp" />
                </LinearLayout>

                <LinearLayout
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"
                    android:layout_weight="1.0"
                    android:orientation="horizontal" >

                    <Button
                        android:id="@+id/btn_choice_cell"
                        android:layout_width="fill_parent"
                        android:layout_height="fill_parent"
                        android:layout_margin="1sp"
                        android:background="@drawable/keypad_count2"
                        android:text="| 整列選"
                        android:textSize="24sp" />
                </LinearLayout>

                <LinearLayout
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"
                    android:layout_weight="1.0"
                    android:orientation="horizontal" >

                    <Button
                        android:id="@+id/btn_choice_row"
                        android:layout_width="fill_parent"
                        android:layout_height="fill_parent"
                        android:layout_margin="1sp"
                        android:background="@drawable/keypad_count2"
                        android:text="— 整行選"
                        android:textSize="24sp" />
                </LinearLayout>

                <LinearLayout
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"
                    android:layout_weight="1.0"
                    android:orientation="horizontal" >

                    <Button
                        android:id="@+id/btn_choice_all"
                        android:layout_width="fill_parent"
                        android:layout_height="fill_parent"
                        android:layout_margin="1sp"
                        android:background="@drawable/keypad_count2"
                        android:text="口 全選"
                        android:textSize="24sp" />
                </LinearLayout>

                <LinearLayout
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"
                    android:layout_weight="1.0"
                    android:orientation="horizontal" >

                    <Button
                        android:id="@+id/btn_choice_single"
                        android:layout_width="fill_parent"
                        android:layout_height="fill_parent"
                        android:layout_margin="1sp"
                        android:background="@drawable/keypad_count_focus"
                        android:text="單選"
                        android:textSize="24sp" />
                </LinearLayout>
            </LinearLayout>
        </LinearLayout>
    </LinearLayout>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="60sp"
        android:layout_marginLeft="5sp"
        android:layout_marginTop="2sp"
        android:background="@drawable/black"
        android:orientation="vertical" >

        <LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="30sp"
            android:layout_weight="1.0"
            android:orientation="horizontal" >

            <TextView
                android:id="@+id/textViewg1"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text=""
                android:textSize="20sp" />

            <TextView
                android:id="@+id/textViewg2"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text=""
                android:textSize="20sp" />

            <TextView
                android:id="@+id/textViewg3"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text=""
                android:textSize="20sp" />
        </LinearLayout>

        <LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="30sp"
            android:layout_weight="1.0"
            android:orientation="horizontal" >

            <TextView
                android:id="@+id/textViewg4"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text=""
                android:textSize="20sp" />

            <TextView
                android:id="@+id/textViewg5"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text=""
                android:textSize="20sp" />
        </LinearLayout>
    </LinearLayout>

    <LinearLayout
        android:id="@+id/tableview"
        android:layout_width="fill_parent"
        android:layout_height="200dp"
        android:layout_margin="3sp"
        android:layout_weight="1.0"
        android:gravity="bottom" >

        <HorizontalScrollView
            android:id="@+id/HorizontalScrollView01"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_margin="5sp" >

            <ScrollView
                android:id="@+id/ScrollView01"
                android:layout_width="wrap_content"
                android:layout_height="fill_parent" >

                <LinearLayout
                    android:id="@+id/root"
                    android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    android:orientation="vertical" >
                </LinearLayout>
            </ScrollView>
        </HorizontalScrollView>
    </LinearLayout>

</LinearLayout>