设计素材代码:
1<?xml version="1.0" encoding="utf-8"?>
2<GridLayout//#http://www.huiyi8.com/jiaoben/
3 xmlns:android="http://schemas.android.com/apk/res/android"
4
5 android:layout_width="match_parent"
6 android:layout_height="match_parent"
7
8 android:useDefaultMargins="true"
9 android:alignmentMode="alignBounds"
10 android:columnOrderPreserved="false"
11
12 android:columnCount="4"
13 >
14
15 <TextView
16 android:text="Email setup"
17 android:textSize="32dip"
18
19 android:layout_columnSpan="4"
20 android:layout_gravity="center_horizontal"
21 />
22
23 <TextView
24 android:text="You can configure email in just a few steps:"
25 android:textSize="16dip"
26
27 android:layout_columnSpan="4"
28 android:layout_gravity="left"
29 />
30
31 <TextView
32 android:text="Email address:"
33
34 android:layout_gravity="right"
35 />
36
37 <EditText
38 android:ems="10"
39 />
40
41 <TextView
42 android:text="Password:"
43
44 android:layout_column="0"
45 android:layout_gravity="right"
46 />
47
48 <EditText
49 android:ems="8"
50 />
51
52 <Space
53 android:layout_row="4"
54 android:layout_column="0"
55 android:layout_columnSpan="3"
56 android:layout_gravity="fill"
57 />
58
59 <Button
60 android:text="Next"
61
62 android:layout_row="5"
63 android:layout_column="3"
64 />
65</GridLayout>
Android 4.0 的 GridLayout,布布扣,bubuko.com