布局
LinerLayout
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
……
</LinearLayout>
TableLayout
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:stretchColumns="1">
<!--
TableRow的子标签,每个控件占一列。
android:padding:同时指定四个内边距
-->
……
</TableLayout>
<!--
android:id // 空间指定ID
android:text // 指定空间当中显示的文字
android:gravity // 控件的位置
android:textSize // 控件当中文字的大小
android:background // 控件的背景颜色
android:width/android:height // 控件的宽、高
android:sigleLine // 如果设置为真的话,则将控件的内容在同一行进行显示
android:layout_weight // 控件占的比例,设各个控件的该属性值为a,b,...,z, 则比例为a/(a+b+...+z)
-->