My question is, how to put a label in a editBox in android ?
Like for example, i want to put “To:” in editbox of a contact picker which will not get deleted even if I press backspace on the onscreen keyboard.
I tried with android:hint, but it gets deleted when the editBox is focus or clicked.
I tried with image but it’s not looking good.
So, I need a method by which i can implement this label thing.
See the visual diagram 
I give you two ideas to do this :
If you only need this in a couple of places, you can use a FrameLayout / merge to have a TextView over your EditText. Then using a padding on the edit text, you can make it seem like the TextView is “inside” the EditText. :
Else you can inplement your own version of EditText, by writing your own Class. Here’s a basic example, you’d need to tweak it a little :