I am using the following code in my xml,
I want to give background to my edittext,the background image is around 400*190 pixels..
Edittext is only occupying only one line and when on other part nothing is happening.
How to set my Edittext to occupy my background image,so that when I click on anypart of it,it should popup keyboard.
<RelativeLayout
android:id="@+id/noteslayout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:background="@drawable/edittextnotes" >
<EditText
android:layout_marginTop="5dp"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:id="@+id/notes"
android:maxLines="5"
android:capitalize="sentences"
android:layout_width="250dp"
android:layout_height="wrap_content"
android:imeOptions="actionDone" />
</RelativeLayout>
Thanks in advance
Why don’t you try to set the background of
EditTextonly besidesRelativeLayoutas below: