【发布时间】:2011-01-16 22:31:19
【问题描述】:
我正在开发一个通过 Web 服务器上的 API 执行搜索的应用程序。我的搜索页面在纵向模式下显示良好,但对于横向模式来说太大了,所以我决定通过在 layout-land 文件夹中自定义 XML 来简单地将所有 UI 元素包含在 ScrollView 中。问题是,我的表单底部的按钮没有显示在横向 ScrollView 中。我不在纵向使用 ScrollView,所以也许这就是问题所在?布局 XML 是这样的:
<LinearLayout>
<ScrollView>
<LinearLayout>
<TableLayout>
<!-- stuff here is being shown (table with TextViews and EditTexts -->
</TableLayout>
<LinearLayout>
<!-- stuff here is not being shown (3 Buttons) -->
</LinearLayout>
</LinearLayout>
</ScrollView>
【问题讨论】:
-
底部还有另一个 ,但它没有显示在表单中(错误?)
标签: android android-activity scrollview