setHint(CharSequence hint) Sets the text to be displayed when the text of the TextView is empty.
2009/10/27 fhucho <fhu...@gmail.com> > > Hi, > I have a username EditText, by default it should show a light gray > text "Enter username", when user clicks on it it should disappear. I > think I saw somewhere that this can be done with a xml attribute > without writing Java code. Does EditText has a xml attribute for this? > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---