title: Android, positioning an element at the bottom of the screen, fixed
body: <p>I'm trying to place an adview at the bottom of every screen by injecting a fragment into a container. I can get the adview to be at the top, below the action bar, by using a LinearLayout. I've tried various combinations of RelativeLayout, but none seem to make the resizing-on-orientation adview stick.</p>
  
  <p>Here's the layout that works for up top:</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
               android:id="@+id/fragmentContainer"
               android:layout_width="match_parent"
               android:layout_height="match_parent"
               android:orientation="vertical"
               xmlns:ads="http://schemas.android.com/apk/res-auto"
          &gt;
  
      &lt;com.google.android.gms.ads.AdView android:id="@+id/adView"
                                         android:layout_width="wrap_content"
                                         android:layout_height="wrap_content"
                                         ads:adSize="SMART_BANNER"/&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>And I add fragments to <code>fragmentContainer</code>. How can I make the adview statically positioned at the bottom of the screen? I've tried various layout nesting strategies and none have worked so far.</p>
  
  <p>The banner should not overlay or cut off any part of the fragment.</p>