title: How to put a AdMob banner below a view with MATCH_PARENT height?
body: <p>I have a <code>ViewPager</code> with a <code>PagerTitleStrip</code> which has <code>MATCH_PARENT</code> height. The pages haves only a text, but some pages have vertical scroll because the text is very long.</p>
  
  <p>Now I'm trying to find the best strategy to put an AdMob banner in the bottom of my layout. This is the situation:
  - If i put below the <code>ViewPager</code>, the banner is not visible, because the <code>ViewPager</code> has <code>MATCH_PARENT</code>. 
  - If i put in the bottom of the layout, then, the <code>ViewPager</code> is scrolling content from behind the banner, and this is not a correct behaviour.</p>
  
  <p>It is possible to put a rule which makes the banner to stay below the <code>ViewPager</code> but without making scrolling content of the <code>ViewPager</code> to be from behind the banner?</p>
  
  <p>Thank you</p>
  
  <p>The way I'm trying to add the banner:</p>
  
  <pre><code>RelativeLayout.LayoutParams adsParams = new RelativeLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT);
          adsParams.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);
          adsParams.addRule(RelativeLayout.BELOW,R.id.pager);
          if (AdManager.getInstance().getAdView()!=null){
              View view = AdManager.getInstance().getAdView();
              mainLayout.addView(view, adsParams);
          }
  </code></pre>
  
  <p>My layout:</p>
  
  <pre><code>&lt;android.support.v4.widget.DrawerLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      android:id="@+id/drawer_layout"
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
      &lt;!-- The main content view --&gt;
      &lt;RelativeLayout
          android:id="@+id/main_layout"
          android:layout_width="match_parent"
          android:layout_height="match_parent"&gt;
          &lt;android.support.v4.view.ViewPager
              xmlns:android="http://schemas.android.com/apk/res/android"
              android:id="@+id/pager"
              android:layout_width="match_parent"
              android:layout_height="match_parent"&gt;
  
              &lt;android.support.v4.view.PagerTitleStrip
                  android:id="@+id/pager_title_strip"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:layout_gravity="top"
                  android:paddingTop="4dp"
                  android:paddingBottom="4dp"
                  style="@style/CustomPagerTitleStrip"/&gt;
          &lt;/android.support.v4.view.ViewPager&gt;
      &lt;/RelativeLayout&gt;
      &lt;!-- The navigation drawer --&gt;
      &lt;android.support.design.widget.NavigationView
          android:id="@+id/navigation_view"
          android:layout_width="wrap_content"
          android:layout_height="match_parent"
          android:layout_gravity="start"
          android:fitsSystemWindows="true"
          app:headerLayout="@layout/drawer_header"
          app:menu="@menu/drawer_menu"
          style="@style/NavigationDrawerStyle"/&gt;
  &lt;/android.support.v4.widget.DrawerLayout&gt;
  </code></pre>