title: How to hide ad banner when opened keyboard on Android
body: <p>I use MoPubView for ad in my app. But when I open keyboard this banner rises and closes widgets.</p>
  
  <p><a href="https://i.stack.imgur.com/TJstI.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TJstI.jpg" alt="enter image description here"></a></p>
  
  <p>This is code from layout:</p>
  
  <pre><code> &lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      android:id="@+id/container"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="@color/material_bg"&gt;
  
      &lt;ScrollView
          android:id="@+id/scroll"
          android:layout_width="match_parent"
          android:layout_height="match_parent"&gt;
  
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:orientation="vertical"
              android:paddingBottom="@dimen/activity_horizontal_margin"&gt;
  
              ...Content here
          &lt;/LinearLayout&gt;
  
  
  
      &lt;/ScrollView&gt;
  
      &lt;com.mopub.mobileads.MoPubView
          android:id="@+id/adview"
          android:layout_width="fill_parent"
          android:layout_height="@dimen/mopub_height"
          android:layout_gravity="bottom"/&gt;
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p>This scheme of this layout:
  <a href="https://i.stack.imgur.com/f2vz3.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/f2vz3.jpg" alt="enter image description here"></a></p>
  
  <p><strong>How to hide this banner or fix it at the bottom?</strong></p>