【发布时间】:2012-04-09 05:12:02
【问题描述】:
我知道 ScrollView 只能有一个 Child,但在我的情况下,我需要有 2 个 TableLayout 使用相同的滚动。我确实尝试过使用 LayoutView wrap 2 TableLayout inside,如下例所示......但它只显示第一个 TableLayout 中的视图
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TableLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
//...
</TableLayout>
<TableLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
//...
</TableLayout>
</LinearLayout>
</ScrollView>
【问题讨论】:
标签: android scrollview tablelayout