title: How can I fix a button at the bottom in the scrollview android?
body: <p>I have this following layout.</p>
  
  <p>I have a button which comes at the bottom of the screen.</p>
  
  <p>I have put my table layout in the scrollview which is scrolling perfectly.</p>
  
  <p>But using scrollview makes the bottom button disapper.
  How can I fix it.</p>
  
  <p>This is my xml layout file</p>
  
  <pre><code>   &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
   android:orientation="vertical" &gt;
  
  &lt;LinearLayout
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_marginBottom="50dp"
      android:layout_marginLeft="10dp"
      android:layout_marginRight="10dp"
      android:layout_marginTop="80dp"
      android:orientation="vertical" &gt;
  
      &lt;TextView
          android:id="@+id/textView1"
          android:layout_width="wrap_content"
          android:layout_height="61dp"
          android:gravity="center"
          android:text="Interest Rates on Domestic Term Deposits (w.e.f. 26th Septemr, 2013)"
          android:textColor="@color/White" /&gt;
  
      &lt;ScrollView
          android:id="@+id/scrollView1"
          android:layout_width="match_parent"
          android:layout_height="0dip"
          android:layout_weight="1" &gt;
  
          &lt;TableLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content" &gt;
  
              &lt;TableRow
                  android:id="@+id/tableRow1"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:background="@color/Red"
                  android:gravity="center" &gt;
  
                  &lt;TextView
                      android:id="@+id/textView2"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:gravity="center"
                      android:text="Pariculars"
                      android:textAppearance="?android:attr/textAppearanceSmall"
                      android:textColor="@color/White" /&gt;
  
                  &lt;TextView
                      android:id="@+id/textView3"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:gravity="center"
                      android:text="General"
                      android:textAppearance="?android:attr/textAppearanceSmall"
                      android:textColor="@color/White" /&gt;
  
                  &lt;TextView
                      android:id="@+id/textView4"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:gravity="center"
                      android:text="Senior Citizens(p.a.)"
                      android:textAppearance="?android:attr/textAppearanceSmall"
                      android:textColor="@color/White" /&gt;
              &lt;/TableRow&gt;
  
              &lt;TableRow
                  android:id="@+id/tableRow2"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:gravity="center" &gt;
  
                  &lt;TextView
                      android:id="@+id/textView3"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:gravity="center"
                      android:text="Revised for deposit upto"
                      android:textAppearance="?android:attr/textAppearanceSmall"
                      android:textColor="@color/White" /&gt;
  
                  &lt;TextView
                      android:id="@+id/textView4"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:gravity="center"
                      android:text="Revised for deposit upto"
                      android:textAppearance="?android:attr/textAppearanceSmall"
                      android:textColor="@color/White" /&gt;
  
                  &lt;TextView
                      android:id="@+id/textView5"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:gravity="center"
                      android:text="Revised for deposit upto"
                      android:textAppearance="?android:attr/textAppearanceSmall"
                      android:textColor="@color/White" /&gt;
              &lt;/TableRow&gt;
  
              &lt;TableRow
                  android:id="@+id/tableRow3"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:gravity="center" &gt;
  
                  &lt;TextView
                      android:id="@+id/textView6"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:gravity="center"
                      android:text="Rs. 15 Lacs"
                      android:textAppearance="?android:attr/textAppearanceSmall"
                      android:textColor="@color/White" /&gt;
  
                  &lt;TextView
                      android:id="@+id/textView7"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:gravity="center"
                      android:text="Rs. 15 Lacs"
                      android:textAppearance="?android:attr/textAppearanceSmall"
                      android:textColor="@color/White" /&gt;
  
                  &lt;TextView
                      android:id="@+id/textView8"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:gravity="center"
                      android:text="Rs. 15 Lacs"
                      android:textAppearance="?android:attr/textAppearanceSmall"
                      android:textColor="@color/White" /&gt;
              &lt;/TableRow&gt;
  
              &lt;TableRow
                  android:id="@+id/tableRow4"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:gravity="center" &gt;
  
                  &lt;TextView
                      android:id="@+id/textView9"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:gravity="center"
                      android:text="7days to 14 days"
                      android:textAppearance="?android:attr/textAppearanceSmall"
                      android:textColor="@color/White" /&gt;
  
                  &lt;TextView
                      android:id="@+id/textView10"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:gravity="center"
                      android:text="7.25%"
                      android:textAppearance="?android:attr/textAppearanceSmall"
                      android:textColor="@color/White" /&gt;
  
                  &lt;TextView
                      android:id="@+id/textView11"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:gravity="center"
                      android:text="7.25%"
                      android:textAppearance="?android:attr/textAppearanceSmall"
                      android:textColor="@color/White" /&gt;
              &lt;/TableRow&gt;
  
              &lt;TableRow
                  android:id="@+id/tableRow5"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:gravity="center" &gt;
  
                  &lt;TextView
                      android:id="@+id/textView12"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:gravity="center"
                      android:text="15 days to 90 days"
                      android:textAppearance="?android:attr/textAppearanceSmall"
                      android:textColor="@color/White" /&gt;
  
                  &lt;TextView
                      android:id="@+id/textView13"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:gravity="center"
                      android:text="7.75%"
                      android:textAppearance="?android:attr/textAppearanceSmall"
                      android:textColor="@color/White" /&gt;
  
                  &lt;TextView
                      android:id="@+id/textView14"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:gravity="center"
                      android:text="7.75%"
                      android:textAppearance="?android:attr/textAppearanceSmall"
                      android:textColor="@color/White" /&gt;
              &lt;/TableRow&gt;
  
              &lt;TableRow
                  android:id="@+id/tableRow6"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:gravity="center" &gt;
  
                  &lt;TextView
                      android:id="@+id/textView15"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:gravity="center"
                      android:text="91 days to 180 days"
                      android:textAppearance="?android:attr/textAppearanceSmall"
                      android:textColor="@color/White" /&gt;
  
                  &lt;TextView
                      android:id="@+id/textView16"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:gravity="center"
                      android:text="8.50%"
                      android:textAppearance="?android:attr/textAppearanceSmall"
                      android:textColor="@color/White" /&gt;
  
                  &lt;TextView
                      android:id="@+id/textView17"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:gravity="center"
                      android:text="8.50%"
                      android:textAppearance="?android:attr/textAppearanceSmall"
                      android:textColor="@color/White" /&gt;
              &lt;/TableRow&gt;
  
              &lt;TableRow
                  android:id="@+id/tableRow7"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:gravity="center" &gt;
  
                  &lt;TextView
                      android:id="@+id/textView18"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:gravity="center"
                      android:text="181 days to 12 months"
                      android:textAppearance="?android:attr/textAppearanceSmall"
                      android:textColor="@color/White" /&gt;
  
                  &lt;TextView
                      android:id="@+id/textView19"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:gravity="center"
                      android:text="9.50%"
                      android:textAppearance="?android:attr/textAppearanceSmall"
                      android:textColor="@color/White" /&gt;
  
                  &lt;TextView
                      android:id="@+id/textView20"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:gravity="center"
                      android:text="9.50%"
                      android:textAppearance="?android:attr/textAppearanceSmall"
                      android:textColor="@color/White" /&gt;
              &lt;/TableRow&gt;
          &lt;/TableLayout&gt;
      &lt;/ScrollView&gt;
  &lt;/LinearLayout&gt;
  
  &lt;RelativeLayout
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:gravity="bottom" &gt;
  
      &lt;Button
          android:id="@+id/homeInterestButton"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentBottom="true"
          android:layout_centerHorizontal="true"
          android:text="Home" /&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p></p>
  
  <p>I just need my tablelayout content to be scrollable and the homebutton should come at the bottom of the activity.</p>