What is wrong with this code?

jasonbrown

New Member
I have tried to make only a small application, but I have a problem with its layout file.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? \[code\]Here's the code:<?xml version="1.0" encoding="utf-8"?><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"> <RelativeLayout android:layout_width="wrap_content" android:layout_height="wrap_content" ><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" /> <EditText android:id="@+id/et_text" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="135dp" /> <RelativeLayout android:layout_width="wrap_content" android:layout_height="wrap_content"> <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"/> <Button android:text="Clear" android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/btn_clear"/> </RelativeLayout> </LinearLayout>\[/code\]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!
 
Back
Top