Adham Adham - 1 year ago 351
Android Question

How to add icon inside EditText view in Android ?

I want to add a "search" icon to appear inside an

in the left edge? such as search box in Facebook Android app?

Answer Source

Use the android:drawableLeft property on the EditText.

    android:drawableLeft="@drawable/my_icon" />