title: Hide Banner Space when there there are no Ads Android
body: <p>I recently changed from Admob SDK to GPS Lib and there is 1 thing bothering me.
  I have a simple View to define line in my Layout to prevent users from clicking on ads unintentionally. With Admob SDK that line would drop to the bottom of layout when there are no ads, but with GPS Lib, that View remains where it is. 
  <img src="https://i.stack.imgur.com/mgJAr.png" alt="enter image description here"></p>
  
  <p>And when there are no ads, when user is using app in offline mode there is that empty ugly space. 
  <img src="https://i.stack.imgur.com/v6PWb.png" alt="enter image description here"></p>
  
  <p>How can I get rid of that space when there are no ads?
  Here is my XML</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:ads="http://schemas.android.com/apk/res-auto"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:background="@drawable/back2" &gt;
      &lt;RelativeLayout
          android:id="@+id/upperBar"
          android:layout_width="match_parent"
          android:layout_height="48dp"
          android:background="#000000" &gt;
          &lt;RelativeLayout
              android:id="@+id/RelativeLayout1"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_alignParentLeft="true"
              android:layout_alignParentTop="true"
              android:background="@drawable/bar"
              android:paddingBottom="2dp"
              android:paddingLeft="2dp"
              android:paddingRight="2dp"
              android:paddingTop="2dp" &gt;
              &lt;ImageButton
                  android:id="@+id/infop"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_marginLeft="20dp"
                  android:background="@drawable/info_select_blue" /&gt;
              &lt;ImageButton
                  android:id="@+id/share"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_alignParentTop="true"
                  android:layout_centerHorizontal="true"
                  android:background="@drawable/share_selector_blue" /&gt;
              &lt;ImageButton
                  android:id="@+id/moreaps"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_alignParentBottom="true"
                  android:layout_alignParentRight="true"
                  android:layout_marginRight="20dp"
                  android:background="@drawable/more_selector_blue" /&gt;
          &lt;/RelativeLayout&gt;
      &lt;/RelativeLayout&gt;
      &lt;GridView
          android:id="@+id/grid_view"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_above="@+id/view"
          android:layout_below="@+id/sbsz"
          android:columnWidth="110dp"
          android:horizontalSpacing="10dp"
          android:listSelector="#00000000"
          android:numColumns="auto_fit"
          android:verticalSpacing="12dp" &gt;
      &lt;/GridView&gt;
      &lt;SeekBar
          android:id="@+id/sbsz"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_alignParentLeft="true"
          android:layout_below="@+id/upperBar"
          android:progressDrawable="@drawable/apptheme_scrubber_progress_horizontal_holo_dark"
          android:thumb="@drawable/apptheme_scrubber_control_selector_holo_dark" /&gt;
      &lt;com.google.android.gms.ads.AdView
          android:id="@+id/adView"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_alignParentBottom="true"
          android:layout_alignParentLeft="true"
          ads:adSize="SMART_BANNER"
          ads:adUnitId="@string/banner" &gt;
      &lt;/com.google.android.gms.ads.AdView&gt;
      &lt;View
          android:id="@+id/view"
          android:layout_width="fill_parent"
          android:layout_height="17dp"
          android:layout_above="@+id/adView"
          android:layout_alignParentLeft="true"
          android:background="@drawable/bar"
          android:visibility="visible" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>