<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/body"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="@drawable/keypad_blue2"
    android:cacheColorHint="#00000000"
    android:orientation="vertical" >


    <LinearLayout
        android:id="@+id/layout_top"
        android:layout_width="fill_parent"
        android:layout_height="120dp"
        android:layout_marginTop="5sp"
        android:cacheColorHint="#00000000"
        android:orientation="horizontal" >

        <ImageView
            android:id="@+id/i_cust"
            android:layout_width="80dp"
            android:layout_height="fill_parent"
            android:layout_margin="0sp"
            android:cacheColorHint="#00000000"
            android:scaleType="fitXY" />

        <LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="116dp"
            android:layout_margin="0sp"
            android:cacheColorHint="#00000000"
            android:orientation="vertical" >

            <Button
                android:id="@+id/b_til1"
                android:layout_width="fill_parent"
                android:layout_height="30sp"
                android:layout_marginLeft="2sp"
                android:layout_marginRight="2sp"
                android:background="@drawable/keypad_count3"
                android:text=""
                android:textSize="14sp" />

            <LinearLayout
                android:layout_width="fill_parent"
                android:layout_height="35dp"
                android:layout_margin="2sp"
                android:cacheColorHint="#00000000"
                android:orientation="horizontal" >

                <Button
                    android:id="@+id/b_til2"
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"
                    android:layout_marginLeft="1sp"
                    android:layout_marginRight="1sp"
                    android:layout_weight="1.0"
                    android:background="@drawable/keypad_count1"
                    android:text=""
                    android:textSize="14sp" />

                <Button
                    android:id="@+id/b_til3"
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"
                    android:layout_marginLeft="1sp"
                    android:layout_marginRight="1sp"
                    android:layout_weight="1.0"
                    android:background="@drawable/keypad_count1"
                    android:text=""
                    android:textSize="14sp" />
            </LinearLayout>

            <LinearLayout
                android:layout_width="fill_parent"
                android:layout_height="35dp"
                android:layout_margin="2sp"
                android:cacheColorHint="#00000000"
                android:orientation="horizontal" >

                <Button
                    android:id="@+id/btn_sort_top1"
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"
                    android:layout_marginRight="3sp"
                    android:layout_weight="1.0"
                    android:background="@drawable/keypad_green"
                    android:text=" 銷貨 "
                    android:textSize="12sp" />

                <Button
                    android:id="@+id/btn_sort_top5"
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"
                    android:layout_marginRight="3sp"
                    android:layout_weight="1.0"
                    android:background="@drawable/keypad_green"
                    android:text=" 預購 "
                    android:textSize="12sp" />

                <Button
                    android:id="@+id/btn_sort_top6"
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"
                    android:layout_marginRight="3sp"
                    android:layout_weight="1.0"
                    android:background="@drawable/keypad_green"
                    android:text=" 留貨 "
                    android:textSize="12sp" />

                <Button
                    android:id="@+id/btn_sort_top2"
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"
                    android:layout_marginRight="3sp"
                    android:layout_weight="1.0"
                    android:background="@drawable/keypad_green"
                    android:text=" 出貨 "
                    android:textSize="12sp" />

                <Button
                    android:id="@+id/btn_sort_top3"
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"
                    android:layout_marginRight="3sp"
                    android:layout_weight="1.0"
                    android:background="@drawable/keypad_green"
                    android:text=" 員購 "
                    android:textSize="12sp" />

                <Button
                    android:id="@+id/btn_sort_top4"
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"
                    android:layout_marginRight="1sp"
                    android:layout_weight="1.0"
                    android:background="@drawable/keypad_green"
                    android:text=" 進貨"
                    android:textSize="12sp" />

            </LinearLayout>
        </LinearLayout>
    </LinearLayout>

    <Button
        android:layout_width="fill_parent"
        android:layout_height="3sp"
        android:layout_margin="0sp"
        android:background="@drawable/keypad_orange"
        android:text="" />

    <RelativeLayout
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_margin="3sp"
        android:background="@drawable/keypad_ncolor" >
    <LinearLayout
        android:id="@+id/layout_bottom11"
        android:layout_width="fill_parent"
        android:layout_height="36sp"
        android:layout_alignParentBottom="true"
        android:layout_marginBottom="4sp"
        android:layout_marginLeft="4sp"
        android:layout_marginRight="4sp" >

        <Button
            android:id="@+id/btn_btn00"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_margin="2sp"
            android:layout_weight="1.0"
            android:background="@drawable/keypad_blue2"
            android:text="每日"
            android:textSize="14sp" />

        <Button
            android:id="@+id/btn_btn1h"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_margin="2sp"
            android:layout_weight="1.0"
            android:background="@drawable/keypad_blue2"
            android:text="每週"
            android:textSize="14sp" />

        <Button
            android:id="@+id/btn_btn2h"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_margin="2sp"
            android:layout_weight="1.0"
            android:background="@drawable/keypad_red"
            android:text="每月"
            android:textSize="14sp" />

        <Button
            android:id="@+id/btn_btn3h"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_margin="2sp"
            android:layout_weight="1.0"
            android:background="@drawable/keypad_green"
            android:text="自訂"
            android:textSize="14sp" />

        <Button
            android:id="@+id/btn_exith"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_margin="2sp"
            android:layout_weight="1.0"
            android:background="@drawable/keypad_pink"
            android:text="離開"
            android:textSize="14sp" />
    </LinearLayout>
        
        <ExpandableListView
            android:id="@+id/list_item_expandh"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_alignParentRight="true"
            android:layout_alignParentTop="true"
            android:layout_above="@+id/layout_bottom11"
            android:layout_margin="3sp"
            android:cacheColorHint="#00000000"
            android:dividerHeight="1px"
            android:fastScrollEnabled="true" >
        </ExpandableListView>

    </RelativeLayout>

</LinearLayout>