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?
android:hint=”username”
put this attribute in EditText
thats it.