How do I put images in a EditText field?

android, android-edittext, android-layout

Solution

To set the image in editText.

<EditText
   ......  
    android:drawableLeft="@drawable/image" />

You can set it Left, Right, Top, Bottom.

Problem

I'd like to put an image in an EditText field, as shown. How should one go about this? Layered-list with the image on one layer and a lot of padding on the left side of the EditText on the other layer?

Original source

Related problems