Skip to content Skip to sidebar Skip to footer

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");    
      return false;
} else {
      inputLayoutName.setErrorEnabled(false);
}

return true;

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)"