Error In Textinputlayout Dont Show Again Even Call Seterrorenabled(true)
I have a TextInputLayout like this
Solution 1:
I made a sample to test this and all I had to do was:
if (edtName.getText().toString().trim().isEmpty()) {
inputLayoutName.setError("Enter name");
returnfalse;
} else {
inputLayoutName.setErrorEnabled(false);
}
returntrue;
The errors reappears as per in your use case should. Can you check with this please?
Post a Comment for "Error In Textinputlayout Dont Show Again Even Call Seterrorenabled(true)"