1 <?xml version="1.0" encoding="utf-8"?>
 2 <GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
 3     android:layout_width="match_parent"
 4     android:layout_height="match_parent"
 5     android:rowCount="4"
 6     android:columnCount="2">
 7 
 8     <EditText
 9         android:layout_rowWeight="1"
10         android:layout_columnWeight="1"
11         android:layout_gravity="fill"
12         android:layout_columnSpan="2"
13         android:text="TO"/>
14 
15     <EditText
16         android:layout_rowWeight="1"
17         android:layout_columnWeight="1"
18         android:layout_gravity="fill"
19         android:layout_columnSpan="2"
20         android:text="Subject"/>
21 
22     <EditText
23         android:layout_rowWeight="35"
24         android:layout_columnWeight="1"
25         android:layout_gravity="fill"
26         android:layout_columnSpan="2"
27         android:text="Message"
28         android:gravity="top|left"/>
29 
30     <Button
31         android:layout_rowWeight="1"
32         android:layout_columnWeight="1"
33         android:layout_gravity="fill"
34         android:text="Resent" />
35     <Button
36         android:layout_rowWeight="1"
37         android:layout_columnWeight="1"
38         android:layout_gravity="fill"
39         android:text="Send" />
40 
41 
42 
43 
44 </GridLayout>
信息界面——GridLayout

posted on 2016-04-22 00:46  安然罒  阅读(147)  评论(0编辑  收藏  举报