Android ScrollView不显示某些UI元素

Android ScrollView不显示某些UI元素,android,android-activity,scrollview,Android,Android Activity,Scrollview,我正在开发一个应用程序,通过web服务器上的API执行搜索。我的搜索页面在portait模式下显示得很好,但对于横向模式来说太大了,所以我决定通过自定义layout land文件夹中的XML,在ScrollView中包含所有UI元素。问题是,窗体底部的按钮没有显示在横向滚动视图中。我在肖像中不使用ScrollView,所以这可能就是问题所在?布局XML如下所示: <LinearLayout> <ScrollView> <LinearLayout>

我正在开发一个应用程序,通过web服务器上的API执行搜索。我的搜索页面在portait模式下显示得很好,但对于横向模式来说太大了,所以我决定通过自定义layout land文件夹中的XML,在ScrollView中包含所有UI元素。问题是,窗体底部的按钮没有显示在横向滚动视图中。我在肖像中不使用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:orientation=“vertical”
设置为您的
线性布局(ScrollView的直接子项)。

底部有另一个,但它没有显示在表单中(bug?)