Android add placeholder text to EditText

Ah, ok. What you’re looking for is setHint(int). Simply pass in a resource id of a string from your xml and you’re good to go.

enter image description here

EDIT

And in XML, it’s simply android:hint="someText"

Leave a Comment