Note that there are some explanatory texts on larger screens.

plurals
  1. POWhat is wrong with this code?
    primarykey
    data
    text
    <p>I have tried to make only a small application, but I have a problem with its layout file.</p> <p>After I placed the ad in the code, my layout has been shifted, and the background too. The edittext went downer and the two buttons too. I don't know how I can make my layout to be the same after the ad place-in too. Could you help me in this please? </p> <pre><code>Here's the code: &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/background"&gt; &lt;RelativeLayout android:layout_width="wrap_content" android:layout_height="wrap_content" &gt; &lt;com.google.ads.AdView xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads" android:id="@+id/adView" android:layout_width="wrap_content" android:layout_height="wrap_content" ads:adSize="BANNER" ads:adUnitId="MY_AD_ID" android:layout_alignParentTop="true" /&gt; &lt;EditText android:id="@+id/et_text" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="135dp" /&gt; &lt;RelativeLayout android:layout_width="wrap_content" android:layout_height="wrap_content"&gt; &lt;Button android:text="Send" android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/btn_post" android:layout_gravity="right" android:layout_alignParentRight="true"/&gt; &lt;Button android:text="Clear" android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/btn_clear"/&gt; &lt;/RelativeLayout&gt; &lt;/LinearLayout&gt; </code></pre> <p>UPDATE: Now I could solve the layout going down problem now, but I don't know how I can make my app, that If I click on the edit text, and the keyboard is coming up, not to push away the background. Thanks for help!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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