I am having one contact form in which I would like to add some icons to my edit text for a better look. I want to create EditText something like below.
A bit old, but for future reference maybe:
I would do a 9-patch image myself with the appearance you want, keeping the proportions and all but the icon, so you can add it yourself (and reuse the background) with drawableLeft
property of EditText
. That way only the middle part of the image will be stretched but the rest will stay the same.