Note that there are some explanatory texts on larger screens.

plurals
  1. PORelativeLayout problem. ImageView scroll up when keyboard shown
    text
    copied!<p>I'm trying to show a ImageView under a AdView like image <a href="https://i.stack.imgur.com/5eyCF.png" rel="nofollow noreferrer">2</a>. The problem is where the EditText is active, the keyboard is shown and if the AdView is loaded, all works perfect, but when the AdView isn't loaded, the ImageView scroll up out of the screen like image <a href="https://i.stack.imgur.com/vwLhb.png" rel="nofollow noreferrer">1</a></p> <p>Here is my xml layout:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:gravity="top"&gt; &lt;com.google.ads.AdView android:layout_width="wrap_content" android:id="@+id/adView" android:layout_height="wrap_content" ads:adUnitId="XXXXXXXXX" ads:adSize="BANNER" ads:loadAdOnCreate="true" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" /&gt; &lt;ImageView android:src="@drawable/frame008" android:id="@+id/imageView1" android:scaleType="centerInside" android:layout_height="wrap_content" android:adjustViewBounds="true" android:focusable="false" android:layout_width="match_parent" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" android:layout_marginTop="50dip"&gt;&lt;/ImageView&gt; </code></pre> <p>The EditText and Submit button:</p> <pre><code>&lt;RelativeLayout android:id="@+id/linearLayout4" android:orientation="horizontal" android:layout_height="wrap_content" android:layout_width="fill_parent" android:layout_centerHorizontal="true" android:layout_alignParentBottom="true"&gt; &lt;Button android:text="Submit" android:id="@+id/button2" android:onClick="submit" android:layout_height="wrap_content" android:layout_width="wrap_content" android:layout_alignParentRight="true"&gt;&lt;/Button&gt; &lt;EditText android:layout_width="wrap_content" android:id="@+id/editText1" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_toLeftOf="@id/button2"&gt; &lt;requestFocus&gt;&lt;/requestFocus&gt; &lt;/EditText&gt; &lt;/RelativeLayout&gt; </code></pre> <p></p> <p>Thanks for your time!!</p> <p><img src="https://i.stack.imgur.com/vwLhb.png" alt="When ads doesn&#39;t load."></p> <p><img src="https://i.stack.imgur.com/5eyCF.png" alt="When ads loads"></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload