RelativeLayout

 1 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
 2     xmlns:tools="http://schemas.android.com/tools"
 3     android:layout_width="match_parent"
 4     android:layout_height="match_parent"
 5     android:paddingBottom="@dimen/activity_vertical_margin"
 6     android:paddingLeft="@dimen/activity_horizontal_margin"
 7     android:paddingRight="@dimen/activity_horizontal_margin"
 8     android:paddingTop="@dimen/activity_vertical_margin"
 9     android:background="#0000ff"
10     tools:context=".MainActivity" >
11     
12     <TextView android:id="@+id/label"
13         android:layout_width="fill_parent"
14         android:layout_height="wrap_content"
15         android:text="Type here"/>
16     
17     <EditText android:id="@+id/edt_1"
18         android:layout_width="fill_parent"
19         android:layout_height="wrap_content"
20         android:layout_below="@id/label"
21         android:text="鄧忠強"/>
22     
23     <Button android:id="@+id/btn_OK"
24         android:layout_height="wrap_content"
25         android:layout_width="100dp"
26         android:text="確定確定"
27         android:layout_alignParentRight="true"
28         android:layout_below="@id/edt_1"/>
29     
30     <Button android:id="@+id/btn_Cancel"
31         android:layout_width="100dp"
32         android:layout_height="wrap_content"
33         android:text="取消"
34         android:layout_toLeftOf="@id/btn_OK"
35         android:layout_alignTop="@id/btn_OK"/>
36 
37 </RelativeLayout>

posted @ 2013-05-24 17:19  Please Call me 小强  阅读(371)  评论(0编辑  收藏  举报