title: Android EditText won't take up remaining space
body: <p>In my Android app, I have a tabbed <code>Activity</code>. In one of the tabs I have two <code>TextView</code>s and two <code>EditText</code>s.  </p>
  
  <p>The first <code>EditText</code> is only one line, and that's fine. However, I want the other <code>EditText</code>, <code>android:id="@+id/paste_code"</code>, to take up the remaining space, but no matter what I do to it, it will only show one line. I don't want to manually set the number of lines, since the number that would fit on the screen differs based on your device.</p>
  
  <p>Here's the relevant code. It's nested inside all the necessary components for a tabbed <code>Activity</code>.</p>
  
  <pre><code>&lt;ScrollView
      android:id="@+id/basicTab"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent" &gt;
      &lt;LinearLayout
          android:orientation="vertical"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent" 
          android:layout_weight="1" &gt;
          &lt;TextView
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:text="Paste title"
              android:layout_weight="0" /&gt;
          &lt;EditText
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:hint="@string/paste_title_hint"
              android:id="@+id/paste_title"
              android:lines="1"
              android:gravity="top|left"
              android:layout_weight="0" /&gt;
          &lt;TextView
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:text="Paste text"
              android:layout_weight="0" /&gt;
          &lt;EditText
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:hint="@string/paste_hint"
              android:id="@+id/paste_code"
              android:gravity="top|left"
              android:layout_weight="1" /&gt;
      &lt;/LinearLayout&gt;
  &lt;/ScrollView&gt;
  </code></pre>