title: Buttons fill vertical space
body: <p>I was told that I could use a second linear layout in such a way that my buttons would stretch to fill the remaining empty space vertically. I'm not sure where to go from here. Any help would be appreciated.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:gravity="center"
      android:orientation="vertical" &gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:gravity="center"
      android:orientation="horizontal" &gt;
  &lt;TableLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:layout_weight="1"
      android:gravity="center"&gt;
      &lt;TableRow&gt;
          &lt;Button
              android:id="@+id/one"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:layout_gravity="fill_vertical"
              android:layout_weight="1"
              android:gravity="center"
              android:text="1" /&gt;
          &lt;Button
              android:id="@+id/two"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:layout_weight="1"
              android:gravity="center"
              android:text="2" /&gt;
      &lt;/TableRow&gt;
      &lt;TableRow&gt;
          &lt;Button
              android:id="@+id/three"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:layout_gravity="fill_vertical"
              android:layout_weight="1"
              android:gravity="center"
              android:text="3" /&gt;
          &lt;Button
              android:id="@+id/four"
              android:text="4"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:gravity="center"
              android:layout_weight="1" /&gt;
      &lt;/TableRow&gt;
      &lt;TableRow&gt;
          &lt;Button
              android:id="@+id/five"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:layout_weight="1"
              android:gravity="center"
              android:text="5" /&gt;
          &lt;Button
              android:id="@+id/six"
              android:text="6"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:gravity="center"
              android:layout_weight="1" /&gt;
      &lt;/TableRow&gt;
  &lt;/TableLayout&gt;
  &lt;/LinearLayout&gt;
  &lt;/LinearLayout&gt;
  </code></pre>