Try using onClickListener :
editText.setOnClickListener(new OnClickListener { void onClick(View v) { editText.setHint("");
To set the prompt again, you can use:
editText.setOnFocusChangeListener(new OnFocusChangeListener { void OnFocusChange(params) { editText.setHint("Your Notes"); } });
By the way, the hint disappears only when the user starts typing. In fact, as long as there are no characters in the EditText , a tooltip is displayed.
source share