线性布局不适合屏幕尺寸

use*_*615 2 android android-linearlayout

为什么滚动视图中的线性布局不适合屏幕尺寸?我试图用"Layout_Height"进行一些更改,但没有成功.

这是我的XML代码:

感谢帮助!

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/scrollViewPhysicalExam"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:background="@drawable/background"
        android:orientation="vertical" >
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            style="@style/HeaderText"
            android:orientation="vertical" >
    <!-- ++++++++++++++++++ Row18 ++++++++++++++++++ -->
            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent" >                  
                <Button
                    android:id="@+id/btnBack"
                    android:text="@string/Back"
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_weight="1.00"
                    android:textSize="15dip" />
                <Button
                    android:id="@+id/btnSave"
                    android:text="Save"
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_weight="1.00"
                    android:textSize="15dip" />
            </LinearLayout>

    <!-- +++++++++++++++++++++++++++++++++++++++++++ -->
        </LinearLayout>
    </LinearLayout>
</ScrollView>
Run Code Online (Sandbox Code Playgroud)

Yoa*_*ein 5

我无法发表评论,所以我会试着回答:你有没有尝试android:fillViewport="true"ScrollView