滚动视图下方的线性布局未显示

Linearlayout below scrollview not showing up

下面应该显示一个滚动视图,它占据了整个屏幕,除了一小部分大到足以在底部放置一个按钮。当我 运行 这个 button/layout 根本没有出现。只有占据整个屏幕的滚动视图和我在滚动视图中的其他视图。想法?

<LinearLayout android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:context="com.th3ramr0d.armybodyfatcalculator.MainActivity"
android:orientation="vertical">

    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

    </ScrollView>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <Button
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Button 1"
        />


    </LinearLayout>
</LinearLayout

这将为您完成工作

<RelativeLayout android:layout_width="match_parent"
     android:layout_height="match_parent"
     xmlns:android="http://schemas.android.com/apk/res/android"
     tools:context="com.th3ramr0d.armybodyfatcalculator.MainActivity"
     xmlns:tools="http://schemas.android.com/tools"
     >
     <ScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_alignParentTop="true"
        android:layout_above="@+id/myButton">
     </ScrollView>

     <Button
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Button 1"
        android:layout_alignParentBottom="true"
        android:id="@+id/myButton" />
</RelativeLayout>