title: Difficulty with ScrollView and LinearLayout
body: <p>I'm trying to make an Android layout: 3 components inside a vertical LinearLayout.  The center component is a <code>ScrollView</code> that contains a <code>TextView</code>.  When the <code>TextView</code> contains a significant amount of text (more than can fit on the screen), the <code>ScrollView</code> grows all the way to the bottom of the screen, shows scrollbars, and pushes the last component, a <code>LinearLayout</code> with a <code>Button</code> inside, off the screen.
  <br/>
  <br/>
  If the text inside the <code>TextView</code> inside the <code>ScrollView</code> is short enough, the button at the bottom of the screen is positioned perfectly.
  <br/>
  <br/>
  The layout I'm trying to achieve is:</p>
  
  <p><img src="https://i.imgur.com/30HzT.png"></p>
  
  <p>The XML for the layout I've written is:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
          android:orientation="vertical"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"&gt;
  
      &lt;TextView android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:textColor="#FFFFFF"
              android:layout_marginLeft="10dip"
              android:layout_marginRight="10dip"
              android:layout_marginTop="10dip"
              android:layout_marginBottom="10dip"
              android:text="Title /&gt;
  
      &lt;ScrollView
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"&gt;
  
          &lt;TextView android:id="@+id/text"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:autoLink="web"
                  android:textColor="#FFFFFF"
                  android:background="#444444"
                  android:padding="10dip" /&gt;
  
      &lt;/ScrollView&gt;
  
      &lt;LinearLayout
              android:orientation="horizontal"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:layout_weight="1"&gt;
  
          &lt;LinearLayout
                  android:orientation="horizontal"
                  android:layout_width="0dip"
                  android:layout_height="wrap_content"
                  android:layout_weight="1"/&gt;
  
          &lt;Button android:id="@+id/login_button"
                  android:layout_width="0dip"
                  android:layout_height="wrap_content"
                  android:layout_gravity="bottom"
                  android:layout_weight="1"
                  android:text="@string/next_button"/&gt;
  
      &lt;/LinearLayout&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>