I have an EditText:
<EditText
android:hint="Your Notes" android:id="@+id/tv_notes_data"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:gravity="right" style="@style/items_description_plain" />
I need the hint to disappear when user clicks on it, but this never happen. Please advice why.
Try to use an
onClickListener:For setting the hint again, you can use:
By the way, the hint disappears only when the user starts typing. In fact, while there is no characters in the
EditText, the hint is shown.