A demo shows how to use TableLayout
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#FFFFFF"
android:stretchColumns="*"
android:splitMotionEvents="true"
android:overScrollMode="ifContentScrolls">
<!-- android:stretchColumns="1"-->
<TableRow>
<TextView
android:text="open"
android:padding="3dip"
/>
<TextView
android:text="ctrl-o"
android:padding="3dip"
android:gravity="right" />
</TableRow>
</TableLayout>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#FFFFFF"
android:stretchColumns="*"
android:splitMotionEvents="true"
android:overScrollMode="ifContentScrolls">
<!-- android:stretchColumns="1"-->
<TableRow>
<TextView
android:text="open"
android:padding="3dip"
/>
<TextView
android:text="ctrl-o"
android:padding="3dip"
android:gravity="right" />
</TableRow>
</TableLayout>
本文将指导您如何在Android中使用TableLayout布局管理器,通过示例展示其配置和使用方法。
1538

被折叠的 条评论
为什么被折叠?



