<?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:orientation="vertical"
android:gravity="center">
<TextView
android:layout_width="wrap_content"
android:layout_height="50dp"
android:gravity="left"
android:singleLine="true"
android:textSize="40sp"
android:ellipsize="marquee"
android:text="添加新条目" />
<Space
android:layout_width="wrap_content"
android:layout_height="30dp"/>
<View
android:layout_width="fill_parent"
android:layout_marginTop="0dp"
android:layout_height="1dp"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:background="#aa000000" />
<Space
android:layout_width="wrap_content"
android:layout_height="20dp"/>
<Spinner
android:id="@+id/spin"
android:layout_marginLeft="3sp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
<Space
android:layout_width="wrap_content"
android:layout_height="20dp"/>
<EditText
android:id="@+id/et_cost_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="4dp"
android:hint="事项说明"
android:textColor="#ffbd27"
/>
<Space
android:layout_width="wrap_content"
android:layout_height="10dp"/>
<EditText
android:id="@+id/et_cost_money"
android:inputType="number|numberDecimal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="4dp"
android:hint="金额(元)"
android:textColor="#ffbd27"
/>
<Space
android:layout_width="wrap_content"
android:layout_height="20dp"/>
<DatePicker
android:id="@+id/dp_cost_date"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:datePickerMode="spinner"
android:calendarViewShown="false"
/>
<Space
android:layout_width="wrap_content"
android:layout_height="50dp"/>
<Button
android:onClick="okButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="确认"
android:textSize="20dp"
android:textColor="#333333"
android:background="#ffbd27"
android:layout_marginLeft="40dp"
android:layout_marginRight="40dp"
/>
<Space
android:layout_width="wrap_content"
android:layout_height="20dp"/>
</LinearLayout>