How to make a static button under a ScrollView?
<p>I have the following XML. I'm trying to make a static button underneath my ScrollView. I've tried to set weights, set the button to be below the scrollview, etc. Can someone give me a way that I can get the button to stay at the bottom and the scrollview only take up the middle of the screen?</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"&gt;



    &lt;LinearLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/menuButtons"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:gravity="center_horizontal"&gt;

        &lt;Button xmlns:android="http://schemas.android.com/apk/res/android"
            android:id="@+id/newItems"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="New Items" /&gt;
        &lt;Button xmlns:android="http://schemas.android.com/apk/res/android"
            android:id="@+id/categories"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Categories" /&gt;

    &lt;/LinearLayout&gt;


    &lt;ScrollView
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/contentScroller"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_below="@id/menuButtons"&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;TableLayout
                xmlns:android="http://schemas.android.com/apk/res/android"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:stretchColumns="1" &gt;


                &lt;TableRow android:layout_marginTop="5dip"
                          android:layout_marginBottom="5dip" &gt;
                    &lt;ImageView
                        android:src="@drawable/thumbdrive"/&gt;"
                    &lt;TextView
                        android:layout_column="1"            
                        android:text="Thumb Drives"            
                        android:padding="3dip" 
                        android:textSize="20dip"/&gt;
                &lt;/TableRow&gt;
                &lt;TableRow android:layout_marginTop="5dip"
                          android:layout_marginBottom="5dip"&gt;
                    &lt;ImageView
                        android:src="@drawable/laptop"/&gt;
                    &lt;TextView
                        android:layout_column="1"
                        android:text="Laptops"
                        android:padding="3dip"
                        android:textSize="20dip"/&gt;
                &lt;/TableRow&gt;
                &lt;TableRow android:layout_marginTop="5dip"
                          android:layout_marginBottom="5dip"&gt;
                    &lt;ImageView
                        android:src="@drawable/sdcard"/&gt;
                    &lt;TextView
                        android:layout_column="1"
                        android:text="SD Cards"
                        android:padding="3dip"
                        android:textSize="20dip"/&gt;
                &lt;/TableRow&gt;
                &lt;TableRow android:layout_marginTop="5dip"
                          android:layout_marginBottom="5dip"&gt;
                    &lt;TextView
                        android:layout_column="1"
                        android:text="Other"
                        android:padding="3dip"
                        android:textSize="20dip"/&gt;
                &lt;/TableRow&gt;
                &lt;TableRow android:layout_marginTop="5dip"
                          android:layout_marginBottom="5dip"&gt;
                    &lt;TextView
                        android:layout_column="1"
                        android:text="Other"
                        android:padding="3dip"
                        android:textSize="20dip"/&gt;
                &lt;/TableRow&gt;
                &lt;TableRow android:layout_marginTop="5dip"
                          android:layout_marginBottom="5dip"&gt;
                    &lt;TextView
                        android:layout_column="1"
                        android:text="Other"
                        android:padding="3dip"
                        android:textSize="20dip"/&gt;
                &lt;/TableRow&gt;
                &lt;TableRow android:layout_marginTop="5dip"
                          android:layout_marginBottom="5dip"&gt;
                    &lt;TextView
                        android:layout_column="1"
                        android:text="Other"
                        android:padding="3dip"
                        android:textSize="20dip"/&gt;
                &lt;/TableRow&gt;
                &lt;TableRow android:layout_marginTop="5dip"
                          android:layout_marginBottom="5dip"&gt;
                    &lt;TextView
                        android:layout_column="1"
                        android:text="Other"
                        android:padding="3dip"
                        android:textSize="20dip"/&gt;
                &lt;/TableRow&gt;
                &lt;TableRow android:layout_marginTop="5dip"
                          android:layout_marginBottom="5dip"&gt;
                    &lt;TextView
                        android:layout_column="1"
                        android:text="Other"
                        android:padding="3dip"
                        android:textSize="20dip"/&gt;
                &lt;/TableRow&gt;
            &lt;/TableLayout&gt;
        &lt;/LinearLayout&gt;
    &lt;/ScrollView&gt;

    &lt;Button
        android:id="@+id/submit"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_centerHorizontal="true"
        android:text="Submit New Item"
        android:layout_below="@id/contentScroller"/&gt;

&lt;/RelativeLayout&gt;
</code></pre>
