How to place an image in the edittext?

advertisements

I want to place implement search in my app for that I need to make a search bar like we see in the google bar image at the end of the text field. I have tried using FrameLayout and I place EditText and image, but it doesn' work ..How do I make it.


Use this inside your EditText

android:drawableRight="@drawable/search"

this will place image inside your EditText..I hope this will help you..