title: Why is there extra space below my scroll view?
body: <p>I have a scroll view that I would like to fill the whole screen, I have the base <code>LinearLayout</code>, then inside that a <code>ScrollView</code>, and then inside that a single <code>LinearLayout</code> containing several textfields and labels. I am running in API level 8. What I wind up with on the emulator is this:</p>
  
  <p><img src="https://i.stack.imgur.com/xY1xp.png" alt="The bottom of my emulator"></p>
  
  <p>So the <code>ScrollView</code> should go all the way to the bottom, but I can't figure out what is causing it not to take up all the space on the screen? Does anybody have any suggestions?</p>
  
  <p>Below is my layout code:</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="match_parent"
    android:layout_height="match_parent"&gt;
      &lt;ScrollView
          android:layout_width="match_parent" 
          android:layout_height="match_parent"&gt;
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:orientation="vertical" &gt;
              &lt;TextView 
                  android:layout_height="wrap_content" 
                  android:id="@+id/textView1" 
                  android:text="@string/create_account_header" 
                  android:textAppearance="?android:attr/textAppearanceLarge" 
                  android:layout_width="wrap_content" android:textStyle="bold"&gt;
              &lt;/TextView&gt;
              &lt;TextView android:layout_height="wrap_content" android:id="@+id/textView2" android:textAppearance="?android:attr/textAppearanceMedium" android:layout_width="wrap_content" android:text="@string/enter_email"&gt;&lt;/TextView&gt;
              &lt;EditText android:inputType="textEmailAddress" android:layout_height="wrap_content" android:layout_width="match_parent" android:id="@+id/emailAddress"&gt;&lt;/EditText&gt;
              &lt;TextView android:layout_height="wrap_content" android:id="@+id/textView3" android:textAppearance="?android:attr/textAppearanceMedium" android:layout_width="wrap_content" android:text="Email Address Again:"&gt;&lt;/TextView&gt;
              &lt;EditText android:layout_height="wrap_content" android:layout_width="match_parent" android:inputType="textEmailAddress" android:id="@+id/emailAddressConfirmation"&gt;
                  &lt;requestFocus&gt;&lt;/requestFocus&gt;
              &lt;/EditText&gt;
              &lt;TextView android:layout_height="wrap_content" android:id="@+id/textView6" android:textAppearance="?android:attr/textAppearanceMedium" android:layout_width="wrap_content" android:text="Username:"&gt;&lt;/TextView&gt;
              &lt;EditText android:inputType="textPersonName" android:layout_height="wrap_content" android:id="@+id/editText1" android:layout_width="match_parent"&gt;&lt;/EditText&gt;
              &lt;TextView android:layout_height="wrap_content" android:id="@+id/textView4" android:textAppearance="?android:attr/textAppearanceMedium" android:layout_width="wrap_content" android:text="Password:"&gt;&lt;/TextView&gt;
              &lt;EditText android:layout_height="wrap_content" android:layout_width="match_parent" android:inputType="textPassword" android:id="@+id/password"&gt;&lt;/EditText&gt;
              &lt;TextView android:layout_height="wrap_content" android:id="@+id/textView5" android:textAppearance="?android:attr/textAppearanceMedium" android:layout_width="wrap_content" android:text="Confirm Password:"&gt;&lt;/TextView&gt;
              &lt;EditText android:layout_height="wrap_content" android:layout_width="match_parent" android:inputType="textPassword" android:id="@+id/passwordConfirmation"&gt;&lt;/EditText&gt;
              &lt;ImageButton android:src="@drawable/generic_image" android:layout_width="wrap_content" android:id="@+id/imageButton1" android:layout_height="wrap_content"&gt;&lt;/ImageButton&gt;
          &lt;/LinearLayout&gt;
      &lt;/ScrollView&gt;
  &lt;/LinearLayout&gt;
  </code></pre>