how to Remove text onfocus of EditText in android?

Posted by UMMA on Stack Overflow See other posts from Stack Overflow or by UMMA
Published on 2010-02-24T14:32:52Z Indexed on 2010/04/04 22:53 UTC
Read the original article Hit count: 289

Filed under:
|

I have a scenario, for example, a EditText in acitivity instead of using Textview as a label of it i want to put text "UserName" inside EditText and if user clicks on it. it should disappear and EditText should get empty to enter data in it.

How can I achieve this?

© Stack Overflow or respective owner

Related posts about android

Related posts about edittext