请看这里的XML代码:
<TableLayout
android:id="@+id/tableLayout1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="10dip"
xmlns:android="http://schemas.android.com/apk/res/android">
<TableRow
android:id="@+id/tableRow1"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<!-- Some stuff goes here -->
/>
</TableRow>
<TableRow
android:id="@+id/tableRow2"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<!-- Some stuff goes here -->
/>
</TableRow>
<TableRow
android:id="@+id/tableRow3"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<!-- Some stuff goes here -->
/>
</TableRow>
</TableLayout>我的代码比这要长得多,但我只是去掉了不必要的部分。问题是我想让这个TableLayout变成一个可滚动的,这样我所有的东西都可以显示出来。
我尝试将这一行放在TableLayout中,以便使其可滚动:
android:isScrollContainer="true"但它并不能完成这项工作。有办法吗?
https://stackoverflow.com/questions/6513718
复制相似问题