My main problem is that if I click on the EditText, and the keyboard
is coming up, my background is moving up. Is there any way to stay at
the same place?

On máj. 6, 11:32, Zwiebel <[email protected]> wrote:
> Thanks the help, but it doesn't works neither :(
>
> On máj. 5, 14:41, krishna kumar <[email protected]> wrote:
>
>
>
>
>
>
>
> > <?xml version="1.0" encoding="utf-8"?>
> > <RelativeLayout
> >  xmlns:android="http://schemas.android.com/apk/res/android";
> >  android:orientation="vertical"
> >  android:layout_width="match_parent"
> >  android:layout_height="match_parent"
> >  android:background="#fff">
>
> >     <!-- put here  as ur requirement -->
>
> > <!--  <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"
> >    android:layout_m
> >    /> -->
> >      <TextView
> >        android:id="@+id/adView"
> >        android:layout_width="fill_parent"
> >        android:layout_height="wrap_content"
> >        android:text="Hello World"
> >        android:padding="10dip"
> >        android:gravity="center"
> >        android:textColor="#fff"
> >        android:textSize="22dip"
> >        android:background="#303030"
> >        />
>
> >      <EditText
> >        android:id="@+id/et_text"
> >        android:layout_width="fill_parent"
> >        android:layout_height="wrap_content"
> >        android:layout_below="@+id/adView"
> >        android:layout_marginTop="20dip"
> >        />
>
> >      <RelativeLayout
> >        android:layout_width="fill_parent"
> >        android:layout_below="@+id/et_text"
> >        android:layout_marginTop="10dip"
> >        android:layout_height="wrap_content">
> >      <RelativeLayout
> >        android:layout_width="wrap_content"
> >       android:layout_centerHorizontal="true"
> >        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:minWidth="100dip"
> >        android:minHeight="60dip"
> >      />
>
> >      <Button
> >        android:text="Clear"
> >        android:layout_width="wrap_content"
> >        android:layout_height="wrap_content"
> >        android:minWidth="100dip"
> >        android:minHeight="60dip"
> >        android:layout_toRightOf="@+id/btn_post"
> >        android:id="@+id/btn_clear"/>
> >      </RelativeLayout>
> >      </RelativeLayout>
> >     </RelativeLayout>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to