<?xml version="1.0" encoding="utf-8"?>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:stretchColumns="0">
<TableRow>
<TextView
android:text="1"
android:padding="3dip"/>
<TextView
android:text="2"
/>
<TextView
android:text="3"
/>
</TableRow>>
<TableRow>
<TextView
android:text="4"
android:padding="3dip"/>
<TextView
android:text="5"
android:padding="3dip"/>
</TableRow>>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:stretchColumns="0">
<TableRow>
<TextView
android:text="1"
android:padding="3dip"/>
<TextView
android:text="2"
/>
<TextView
android:text="3"
/>
</TableRow>>
<TableRow>
<TextView
android:text="4"
android:padding="3dip"/>
<TextView
android:text="5"
android:padding="3dip"/>
</TableRow>>
</TableLayout>
结果如下