Fitting image layout
<p>Attached image shows an interface. Notice the black part on the bottom. How do I pull my footer image to the bottom? I used fill_parent on my middle layout but it fills the whole screen and the footer wont show.</p>

<p><img src="http://i.stack.imgur.com/LLGCv.jpg" alt="enter image description here"></p>

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

  &lt;RelativeLayout 
    android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#ffffff" &gt;

    &lt;!--  Header Starts--&gt;
          &lt;LinearLayout 
              android:id="@+id/headerForSearch"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:background="@layout/headerbackground"
              android:paddingTop="5dip"
              android:weightSum="1"
              android:gravity="center"
              &gt;

              &lt;ImageView 
                  android:src="@drawable/footprint" 
                  android:layout_width="wrap_content" 
                  android:layout_weight="0.09" 
                  android:layout_height="fill_parent"&gt;
              &lt;/ImageView&gt;

          &lt;/LinearLayout&gt;  
    &lt;!--  Header Ends --&gt;


     &lt;!-- About Us  --&gt;
        &lt;LinearLayout android:id="@+id/searchPBody" android:layout_width="fill_parent"         android:layout_height="wrap_content"    android:padding="10dip" android:orientation="vertical" android:layout_below="@+id/headerForSearch" android:layout_alignParentLeft="true"&gt;
     &lt;ImageView android:layout_marginTop="10dip"  
               android:layout_width="wrap_content" 
               android:layout_height="wrap_content"
               android:src="@drawable/about_us_header"                     
               /&gt;          
    &lt;/LinearLayout&gt; 
 &lt;!--  Login Form Ends --&gt;



&lt;RelativeLayout
android:id="@+id/searchPBody2"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:layout_marginRight="15dip"
android:layout_marginLeft="15dip"
android:layout_marginTop="15dip"
android:layout_marginBottom="15dip"
android:layout_below="@+id/searchPBody"&gt;

        &lt;TextView android:text="Place Name:" 
            android:layout_marginTop="23dip"  
            android:layout_width="wrap_content" 
            android:layout_height="wrap_content" 
            android:textColor="@color/black"
            android:id="@+id/placeNameTV" /&gt;

        &lt;EditText android:hint="Type here"
            android:id="@+id/searchQuery"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="10dip"
            android:layout_marginLeft="15dip"
            android:layout_toRightOf="@+id/placeNameTV"/&gt;

&lt;/RelativeLayout&gt;

    &lt;LinearLayout
            android:id="@+id/searchBtnLayout"
            android:layout_height="wrap_content"
            android:layout_width="fill_parent"
            android:layout_below="@+id/searchPBody2"&gt;

    &lt;Button
        android:id="@+id/submitQuery"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:text="Submit"
        android:layout_below="@+id/searchQuery"
        android:layout_toRightOf="@+id/placeNameTV"/&gt;


    &lt;/LinearLayout&gt;

&lt;!--  Footer Starts --&gt;


&lt;LinearLayout
    android:id="@+id/footer"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:layout_below="@+id/searchBtnLayout"
    android:background="@layout/footer_repeat"
    android:gravity="center" 
    android:layout_alignParentBottom="true"&gt;

               &lt;TextView android:textSize="12dip" 
                  android:textColor="#ffffff" 
                  android:text = "© Meet&amp;Co" 
                  android:layout_width="wrap_content" 
                  android:layout_marginTop="10dip" 
                  android:layout_height="wrap_content" 
                  android_weight="0.33" /&gt;    
&lt;/LinearLayout&gt;

&lt;!--  Footer Ends --&gt;
&lt;/RelativeLayout&gt;     
&lt;/ScrollView&gt;
</code></pre>
