title: How to have a fixed footer with scrollview in android?
body: <p>I have been trying to use </p>
  
  <p><a href="https://stackoverflow.com/questions/4523328/fixed-footer-not-displaying-the-bottom-most-list-item">Fixed footer not displaying the bottom-most list item</a></p>
  
  <p>but does not work with scrollview . 
  Note i am not using listview but it is a big layouts with images and buttons . 
  The footer should be positioned at the botton always even while user is scrolling . 
  FourSquare has this in their app where there is fixed footer even while scrolling.</p>
  
  <pre><code>&lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:fillViewport="true" &gt;
  
  &lt;RelativeLayout
      android:id="@+id/root"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content" &gt;
  
      &lt;LinearLayout
          android:id="@+id/search_container"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentBottom="true"
          android:background="@color/red" /&gt;
  
      &lt;LinearLayout
          android:id="@+id/main_container"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_above="@+id/search_container"
          android:layout_below="@+id/root"
          android:background="@color/layout_bg_wallet_login"
          android:orientation="vertical" &gt;
          ------More Buttons and Images
      &lt;/LinearLayout&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p></p>