<?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/picbg" >

    <RelativeLayout
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_margin="2sp"
        android:background="@drawable/keypad_ncolor" >

        <LinearLayout
            android:id="@+id/layout_bottom"
            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_new"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:layout_margin="1sp"
                android:layout_weight="1.0"
                android:background="@drawable/keypad_blue2"
                android:text="相本"
                android:textSize="14sp" />

            <Button
                android:id="@+id/btn_income"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:layout_margin="1sp"
                android:layout_weight="1.0"
                android:background="@drawable/keypad_blue2"
                android:text="語音"
                android:textSize="14sp" />

            <Button
                android:id="@+id/btn_remind"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:layout_margin="1sp"
                android:layout_weight="1.0"
                android:background="@drawable/keypad_blue2"
                android:text="GPS"
                android:textSize="14sp" />

            <Button
                android:id="@+id/btn_save"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:layout_margin="1sp"
                android:layout_weight="1.0"
                android:background="@drawable/keypad_blue2"
                android:text="存入"
                android:textSize="14sp" />

            <Button
                android:id="@+id/btn_exit"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:layout_margin="1sp"
                android:layout_weight="1.0"
                android:background="@drawable/keypad_pink"
                android:text="離開"
                android:textSize="14sp" />
        </LinearLayout>

        <ScrollView
            android:id="@+id/layout_button"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_above="@+id/layout_bottom"
            android:layout_alignParentTop="true"
            android:layout_marginTop="5sp" >

            <LinearLayout
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_marginLeft="5sp"
                android:layout_marginRight="3sp"
                android:orientation="vertical" >

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

                    <RelativeLayout
                        android:id="@+id/layout_img_item"
                        android:layout_width="fill_parent"
                        android:layout_height="160sp"
                        android:layout_marginLeft="7sp"
                        android:layout_weight="3.0"
                        android:background="@drawable/keypad_camera" >

                        <ImageView
                            android:id="@+id/img_item"
                            android:layout_width="fill_parent"
                            android:layout_height="wrap_content"
                            android:layout_centerInParent="true"
                            android:layout_margin="6sp"
                            android:src="@drawable/img_camera" >
                        </ImageView>
                        <!-- android:src="@drawable/demo" -->
                    </RelativeLayout>

                    <LinearLayout
                        android:layout_width="fill_parent"
                        android:layout_height="160sp"
                        android:layout_weight="2.0"
                        android:orientation="vertical" >

                        <LinearLayout
                            android:layout_width="fill_parent"
                            android:layout_height="40sp"
                            android:orientation="horizontal" >

                            <ImageView
                                android:id="@+id/img_country"
                                android:layout_width="fill_parent"
                                android:layout_height="36sp"
                                android:layout_marginTop="3sp"
                                android:layout_weight="2.0"
                                android:src="@drawable/country_koe" />

                            <EditText
                                android:id="@+id/edit_country"
                                android:layout_width="fill_parent"
                                android:layout_height="fill_parent"
                                android:layout_marginBottom="5sp"
                                android:layout_marginRight="3sp"
                                android:layout_marginTop="5sp"
                                android:layout_weight="1.0"
                                android:background="@drawable/keypad_edit"
                                android:focusable="false"
                                android:paddingLeft="10sp" />
                        </LinearLayout>

                        <LinearLayout
                            android:layout_width="fill_parent"
                            android:layout_height="40sp"
                            android:orientation="horizontal" >

                            <TextView
                                android:layout_width="fill_parent"
                                android:layout_height="fill_parent"
                                android:layout_marginRight="1sp"
                                android:layout_weight="2.0"
                                android:gravity="center|right"
                                android:text="廠商編號"
                                android:textColor="#ffffff" />

                            <EditText
                                android:id="@+id/edit_factno"
                                android:layout_width="fill_parent"
                                android:layout_height="fill_parent"
                                android:layout_marginBottom="5sp"
                                android:layout_marginLeft="2sp"
                                android:layout_marginRight="3sp"
                                android:layout_marginTop="5sp"
                                android:layout_weight="1.0"
                                android:background="@drawable/keypad_edit_white"
                                android:paddingLeft="10sp"
                                android:singleLine="true" />
                        </LinearLayout>

                        <LinearLayout
                            android:layout_width="fill_parent"
                            android:layout_height="40sp"
                            android:orientation="horizontal" >

                            <TextView
                                android:layout_width="fill_parent"
                                android:layout_height="fill_parent"
                                android:layout_marginLeft="6sp"
                                android:layout_marginRight="1sp"
                                android:layout_weight="2.0"
                                android:gravity="center|right"
                                android:text="廠商名稱"
                                android:textColor="#ffffff" />

                            <EditText
                                android:id="@+id/edit_factname"
                                android:layout_width="fill_parent"
                                android:layout_height="fill_parent"
                                android:layout_marginBottom="5sp"
                                android:layout_marginLeft="2sp"
                                android:layout_marginRight="3sp"
                                android:layout_marginTop="5sp"
                                android:layout_weight="1.0"
                                android:background="@drawable/keypad_edit_white"
                                android:paddingLeft="10sp"
                                android:singleLine="true" />
                        </LinearLayout>

                        <LinearLayout
                            android:layout_width="fill_parent"
                            android:layout_height="40sp"
                            android:orientation="horizontal" >

                            <TextView
                                android:layout_width="fill_parent"
                                android:layout_height="fill_parent"
                                android:layout_marginRight="1sp"
                                android:layout_weight="2.0"
                                android:gravity="center|right"
                                android:text="交易方式"
                                android:textColor="#ffffff" />

                            <Spinner
                                android:id="@+id/spin_trade"
                                android:layout_width="fill_parent"
                                android:layout_height="fill_parent"
                                android:layout_weight="1.0" />
                        </LinearLayout>
                    </LinearLayout>
                </LinearLayout>

                <LinearLayout
                    android:layout_width="fill_parent"
                    android:layout_height="40sp"
                    android:orientation="horizontal" >

                    <LinearLayout
                        android:layout_width="fill_parent"
                        android:layout_height="fill_parent"
                        android:layout_marginLeft="3sp"
                        android:layout_marginRight="3sp"
                        android:layout_weight="1.0"
                        android:orientation="horizontal" >

                        <TextView
                            android:layout_width="fill_parent"
                            android:layout_height="fill_parent"
                            android:layout_marginRight="1sp"
                            android:layout_weight="2.0"
                            android:gravity="right|center"
                            android:text="EMAIL"
                            android:textColor="#ffffff" />

                        <EditText
                            android:id="@+id/edit_email"
                            android:layout_width="fill_parent"
                            android:layout_height="fill_parent"
                            android:layout_marginBottom="5sp"
                            android:layout_marginLeft="2sp"
                            android:layout_marginRight="3sp"
                            android:layout_marginTop="5sp"
                            android:layout_weight="1.0"
                            android:background="@drawable/keypad_edit_white"
                            android:inputType="textEmailAddress"
                            android:paddingLeft="10sp"
                            android:singleLine="true" />
                    </LinearLayout>

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

                        <TextView
                            android:layout_width="fill_parent"
                            android:layout_height="fill_parent"
                            android:layout_marginRight="1sp"
                            android:layout_weight="2.0"
                            android:gravity="right|center"
                            android:text="Lati緯度"
                            android:textColor="#ffffff" />

                        <EditText
                            android:id="@+id/edit_gpsla"
                            android:layout_width="fill_parent"
                            android:layout_height="fill_parent"
                            android:layout_marginBottom="5sp"
                            android:layout_marginLeft="2sp"
                            android:layout_marginRight="3sp"
                            android:layout_marginTop="5sp"
                            android:layout_weight="1.0"
                            android:background="@drawable/keypad_edit_white"
                            android:focusable="false"
                            android:paddingLeft="10sp"
                            android:singleLine="true" />
                    </LinearLayout>
                </LinearLayout>

                <LinearLayout
                    android:layout_width="fill_parent"
                    android:layout_height="40sp"
                    android:orientation="horizontal" >

                    <LinearLayout
                        android:layout_width="fill_parent"
                        android:layout_height="fill_parent"
                        android:layout_marginLeft="3sp"
                        android:layout_marginRight="3sp"
                        android:layout_weight="1.0"
                        android:orientation="horizontal" >

                        <TextView
                            android:layout_width="fill_parent"
                            android:layout_height="fill_parent"
                            android:layout_marginRight="1sp"
                            android:layout_weight="2.0"
                            android:gravity="right|center"
                            android:text="MSN"
                            android:textColor="#ffffff" />

                        <EditText
                            android:id="@+id/edit_msn"
                            android:layout_width="fill_parent"
                            android:layout_height="fill_parent"
                            android:layout_marginBottom="5sp"
                            android:layout_marginLeft="2sp"
                            android:layout_marginRight="3sp"
                            android:layout_marginTop="5sp"
                            android:layout_weight="1.0"
                            android:background="@drawable/keypad_edit_white"
                            android:paddingLeft="10sp"
                            android:singleLine="true" />
                    </LinearLayout>

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

                        <TextView
                            android:layout_width="fill_parent"
                            android:layout_height="fill_parent"
                            android:layout_marginRight="1sp"
                            android:layout_weight="1.0"
                            android:gravity="right|center"
                            android:text="Long經度"
                            android:textColor="#ffffff" />

                        <EditText
                            android:id="@+id/edit_gpslo"
                            android:layout_width="fill_parent"
                            android:layout_height="fill_parent"
                            android:layout_marginBottom="5sp"
                            android:layout_marginLeft="2sp"
                            android:layout_marginRight="3sp"
                            android:layout_marginTop="5sp"
                            android:layout_weight="1.0"
                            android:background="@drawable/keypad_edit_white"
                            android:focusable="false"
                            android:paddingLeft="10sp"
                            android:singleLine="true" />
                    </LinearLayout>
                </LinearLayout>

                <LinearLayout
                    android:layout_width="fill_parent"
                    android:layout_height="40sp"
                    android:orientation="horizontal" >

                        <TextView
                            android:layout_width="fill_parent"
                            android:layout_height="fill_parent"
                            android:layout_marginRight="1sp"
                            android:layout_weight="2.0"
                            android:gravity="right|center"
                            android:text="GMAIL"
                            android:textColor="#ffffff" />

                        <EditText
                            android:id="@+id/edit_gmail"
                            android:layout_width="fill_parent"
                            android:layout_height="fill_parent"
                            android:layout_marginBottom="5sp"
                            android:layout_marginLeft="2sp"
                            android:layout_marginRight="3sp"
                            android:layout_marginTop="5sp"
                            android:layout_weight="1.3"
                            android:background="@drawable/keypad_edit_white"
                            android:inputType="textEmailAddress"
                            android:paddingLeft="10sp"
                            android:singleLine="true" />

                    <RadioGroup
                        android:id="@+id/group_state"
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:layout_gravity="center"
                        android:layout_marginRight="2sp"
                        android:layout_weight="1.5"
                        android:orientation="horizontal" >

                        <RadioButton
                            android:id="@+id/radio_state_1"
                            android:layout_width="fill_parent"
                            android:layout_height="wrap_content"
                            android:layout_gravity="center"
                            android:layout_weight="1.0"
                            android:text="歷史價"
                			android:textSize="16sp"
                            android:textColor="#000000" >
                        </RadioButton>

                        <RadioButton
                            android:id="@+id/radio_state_2"
                            android:layout_width="fill_parent"
                            android:layout_height="wrap_content"
                            android:layout_gravity="center"
                            android:layout_weight="1.0"
                            android:text="標準價"
                			android:textSize="16sp"
                            android:textColor="#000000" >
                        </RadioButton>
                     </RadioGroup>

                </LinearLayout>

                <LinearLayout
                    android:layout_width="fill_parent"
                    android:layout_height="40sp"
                    android:orientation="horizontal" >

                    <LinearLayout
                        android:layout_width="fill_parent"
                        android:layout_height="fill_parent"
                        android:layout_marginLeft="3sp"
                        android:layout_marginRight="3sp"
                        android:layout_weight="1.0"
                        android:orientation="horizontal" >

                        <TextView
                            android:layout_width="fill_parent"
                            android:layout_height="fill_parent"
                            android:layout_marginRight="1sp"
                            android:layout_weight="2.0"
                            android:gravity="right|center"
                            android:text="MOBIL"
                            android:textColor="#ffffff" />

                        <EditText
                            android:id="@+id/edit_mobil"
                            android:layout_width="fill_parent"
                            android:layout_height="fill_parent"
                            android:layout_marginBottom="5sp"
                            android:layout_marginLeft="2sp"
                            android:layout_marginRight="3sp"
                            android:layout_marginTop="5sp"
                            android:layout_weight="1.0"
                            android:background="@drawable/keypad_edit_white"
                            android:paddingLeft="10sp"
                            android:singleLine="true" />
                    </LinearLayout>

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

                        <TextView
                            android:layout_width="fill_parent"
                            android:layout_height="fill_parent"
                            android:layout_marginRight="1sp"
                            android:layout_weight="2.0"
                            android:gravity="right|center"
                            android:text="建檔時間"
                            android:textColor="#ffffff" />

                        <EditText
                            android:id="@+id/edit_datetime"
                            android:layout_width="fill_parent"
                            android:layout_height="fill_parent"
                            android:layout_marginBottom="5sp"
                            android:layout_marginLeft="2sp"
                            android:layout_marginRight="3sp"
                            android:layout_marginTop="5sp"
                            android:layout_weight="1.0"
                            android:background="@drawable/keypad_edit_white"
                            android:focusable="false"
                            android:paddingLeft="10sp"
                            android:textSize="12sp"
                            android:singleLine="true" />
                    </LinearLayout>
                </LinearLayout>

                <LinearLayout
                    android:layout_width="fill_parent"
                    android:layout_height="40sp"
                    android:orientation="horizontal" >

                    <LinearLayout
                        android:layout_width="fill_parent"
                        android:layout_height="fill_parent"
                        android:layout_marginLeft="3sp"
                        android:layout_marginRight="3sp"
                        android:layout_weight="1.0"
                        android:orientation="horizontal" >

                        <TextView
                            android:layout_width="fill_parent"
                            android:layout_height="fill_parent"
                            android:layout_marginRight="1sp"
                            android:layout_weight="2.0"
                            android:gravity="right|center"
                            android:text="生日"
                            android:textColor="#ffffff" />

                        <EditText
                            android:id="@+id/edit_birthday"
                            android:layout_width="fill_parent"
                            android:layout_height="fill_parent"
                            android:layout_marginBottom="5sp"
                            android:layout_marginLeft="2sp"
                            android:layout_marginRight="3sp"
                            android:layout_marginTop="5sp"
                            android:layout_weight="1.0"
                            android:background="@drawable/keypad_edit_white"
                            android:focusable="false"
                            android:paddingLeft="10sp"
                            android:textSize="12sp"
                            android:singleLine="true" />
                    </LinearLayout>

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

                        <TextView
                            android:layout_width="fill_parent"
                            android:layout_height="fill_parent"
                            android:layout_marginRight="1sp"
                            android:layout_weight="2.0"
                            android:gravity="right|center"
                            android:text="折數"
                            android:textColor="#ffffff" />

                        <EditText
                            android:id="@+id/edit_sale"
                            android:layout_width="fill_parent"
                            android:layout_height="fill_parent"
                            android:layout_marginBottom="5sp"
                            android:layout_marginLeft="2sp"
                            android:layout_marginRight="3sp"
                            android:layout_marginTop="5sp"
                            android:layout_weight="1.0"
                            android:background="@drawable/keypad_edit_white"
                            android:paddingLeft="10sp"
                            android:singleLine="true" />
                    </LinearLayout>
                </LinearLayout>

                <LinearLayout
                    android:layout_width="fill_parent"
                    android:layout_height="40sp"
                    android:orientation="horizontal" >

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

                        <TextView
                            android:layout_width="fill_parent"
                            android:layout_height="fill_parent"
                            android:layout_marginRight="1sp"
                            android:layout_weight="3.0"
                            android:gravity="right|center"
                            android:text="地址"
                            android:textColor="#ffffff" />

                        <EditText
                            android:id="@+id/edit_address"
                            android:layout_width="fill_parent"
                            android:layout_height="fill_parent"
                            android:layout_marginBottom="5sp"
                            android:layout_marginLeft="2sp"
                            android:layout_marginRight="3sp"
                            android:layout_marginTop="5sp"
                            android:layout_weight="1.0"
                            android:background="@drawable/keypad_edit_white"
                            android:paddingLeft="10sp"
                            android:singleLine="true" />
                    </LinearLayout>
                </LinearLayout>

                <LinearLayout
                    android:layout_width="fill_parent"
                    android:layout_height="40sp"
                    android:orientation="horizontal" >

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

                        <TextView
                            android:layout_width="fill_parent"
                            android:layout_height="fill_parent"
                            android:layout_marginRight="1sp"
                            android:layout_weight="3.0"
                            android:gravity="right|center"
                            android:text="備註"
                            android:textColor="#ffffff" />

                        <EditText
                            android:id="@+id/edit_desc"
                            android:layout_width="fill_parent"
                            android:layout_height="fill_parent"
                            android:layout_marginBottom="5sp"
                            android:layout_marginLeft="2sp"
                            android:layout_marginRight="3sp"
                            android:layout_marginTop="5sp"
                            android:layout_weight="1.0"
                            android:background="@drawable/keypad_edit_white"
                            android:paddingLeft="10sp"
                            android:singleLine="true" />
                    </LinearLayout>
                </LinearLayout>
            </LinearLayout>
        </ScrollView>
    </RelativeLayout>

</LinearLayout>