title: Viewpager with footer
body: <p>I am trying to setup a layout but somehow the viewpager is overlapping with the footer. I could see the viewpager's image below the footer.</p>
  
  <p>The layout structure I am trying is (with no overlapping)</p>
  
  <hr>
  
  <h2>|      ViewPager    |</h2>
  
  <h2>|      Footer       |</h2>
  
  <h2>|      Admob Footer |</h2>
  
  <p>I haven't mentioned the actionbar on the top.</p>
  
  <p>My code so far:</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:orientation="vertical"&gt;
  &lt;LinearLayout android:layout_width="fill_parent"
      android:id="@+id/home_layout"
      android:orientation="vertical"
      android:layout_height="wrap_content"
      android:layout_alignTop="@+id/home_layout"&gt;
      &lt;android.support.v4.view.ViewPager
          android:id="@+id/pager"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:background="@color/background"&gt;
      &lt;/android.support.v4.view.ViewPager&gt;
  &lt;/LinearLayout&gt;
  
  &lt;LinearLayout
      android:id="@+id/feature_add_confirm_buttons"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_alignBottom="@+id/home_layout"
      android:gravity="bottom"
      android:layout_alignParentBottom="true"
      android:orientation="horizontal"&gt;
      &lt;Button
          android:id="@+id/add"
          android:text="Add"
          android:layout_width="0dp"
          android:layout_weight="1"
          android:layout_height="wrap_content"
          android:background="@color/background"
          android:textColor="#FFFFFF"/&gt;
      &lt;TextView
          android:id="@+id/num"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:textSize="@dimen/num"
          android:textStyle="bold" /&gt;
      &lt;Button
          android:id="@+id/delete"
          android:text="Del"
          android:layout_width="0dp"
          android:layout_weight="1"
          android:layout_height="wrap_content"
          android:background="@color/background"
          android:textColor="#FFFFFF" /&gt;
  &lt;/LinearLayout&gt;
  &lt;com.google.ads.AdView
       android:layout_alignParentBottom="true"&gt;
  &lt;/com.google.ads.AdView&gt;
  </code></pre>
  
  <p></p>
  
  <p>Am I missing anything? Any help will be appreciated.</p>