Android Studio – EditText.setHint doesn't work when it has content in it
I want to add a clear function to a button. I have written this code: clear.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { name.setHint("Enter name"); mail.setHint("Enter mail"); num.setHint("Enter num"); } }); It works when the field is empty but…