Making EditText in android 2.3 to look like as in android higher versions -
i developing android app in version 2.3. need create edittex has same effect edittext coast "from" image
![two muppets][1]
you can try below.
<edittext android:id="@+id/edittext1" android:layout_width="match_parent" android:layout_height="wrap_content" android:minlines="5" android:drawabletop="@drawable/profile_one" android:ems="10" android:hint="tap enter title" android:gravity="top|left" > <requestfocus /> </edittext>
this line android:drawabletop="@drawable/profile_one"
set image in edit-text replace profile_one
name image name.
like wise can set image left, right, , bottom following property.
android:drawablebottom="@drawable/profile_one" android:drawableleft="@drawable/profile_one" android:drawableright="@drawable/profile_one"
output
Comments
Post a Comment