Android中的可滚动布局

Vik*_*dar 31 forms android android-linearlayout

我的注册表格LinearLayout如下所示:

替代文字

当仿真器屏幕处于默认位置时,它工作正常.但是当我旋转模拟器屏幕时,它只显示适合屏幕的元素,剩下的元素就会结束.如下面的屏幕所示: 替代文字

现在我想让这个布局可滚动但不能理解.任何帮助将受到高度赞赏.

Fre*_*ius 89

尝试将LinearLayout放在ScrollView中,如下所示:

<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent" android:layout_height="fill_parent">

    <LinearLayout android:id="@+id/menu_ll"
        android:layout_width="fill_parent" android:layout_height="fill_parent"></LinearLayout>

</ScrollView>
Run Code Online (Sandbox Code Playgroud)