Search code examples
androidandroid-edittextandroid-textinputlayout

Default error popup with TextInputLayout


Having a problem setting a different error message to EditText inside TextInputLayout.

What I get:

enter image description here

What I want:

enter image description here

Is there anyway to achieve it while maintaining TextInputLayout?


Solution

  • Turns out i have allready solved it, i have wrote before in code:

    ((TextInputLayout) item_).setError(valid.getEventResult().getViewErrors()[i].getMessage().get_Message());
    

    All i had to do was change it so i set the error on EditText instead of TextInputLayout.