title: admob view white gap at bottom on test ads
body: <p>In my app, i use fragments. I initialize the adview in my main activity. Each fragment has a listview with an admob view at the bottom end of the listview. Test Ads show up in my first fragment but when i navigate to another fragment although i tried to use <code>destroy()</code> when <code>onPause()</code> function of the fragment is triggered, there is a white gap at the bottom of the listview at the new fragment i landed! I haven't created any adviews in the new fragment! Any thoughts why is this happening?</p>
  <p>Any help appreciated!</p>
  <p>This is my homefragment.xml</p>
  <pre><code>&lt;ListView
      android:id=&quot;@+id/homelistview&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;0dp&quot;
      app:layout_constraintBottom_toTopOf=&quot;@+id/adView1&quot;
      app:layout_constraintTop_toTopOf=&quot;parent&quot;
      /&gt;
  
  &lt;com.google.android.gms.ads.AdView
      android:id=&quot;@+id/adView1&quot;
      android:contentDescription=&quot;@string/admobviewDescription&quot;
      android:layout_centerHorizontal=&quot;true&quot;
      app:adSize=&quot;SMART_BANNER&quot;
      app:adUnitId=&quot;ca-app-pub-3940256099942544/6300978111&quot;
      android:layout_width=&quot;0dp&quot;
      android:layout_height=&quot;wrap_content&quot;
      app:layout_constraintEnd_toEndOf=&quot;parent&quot;
      app:layout_constraintStart_toStartOf=&quot;parent&quot;
      app:layout_constraintBottom_toBottomOf=&quot;parent&quot;
      app:layout_constraintTop_toBottomOf=&quot;@+id/homelistview&quot;
      &gt;
  &lt;/com.google.android.gms.ads.AdView&gt;
  </code></pre>
  <p>UPDATE</p>
  <p>I found this page  <a href="https://developers.google.com/admob/android/custom-events" rel="nofollow noreferrer">https://developers.google.com/admob/android/custom-events</a>
  which mentions the following. Anyone knows if this means that test ads cant be paused?</p>
  <pre><code>@Override
      public void onPause() {
          // The sample ad network doesn't have an onPause method, so does nothing.
      }
  </code></pre>