Tuesday, 25 April 2023

Don't change textinputlayout hint color while setting error

I am implementing form using textinputlayout in Android

I don't want to change hint text color while setting error on textinputlayout as per below textinput layout with error enabled

textInputLayout.setErrorEnabled(true)
textInputLayout.setError("this field is required ")

// As of now this code is changing error message and hint color to red. But I don't want to change hint color to red. Only message color should be changed to red

I want to change error hint "nickname" to blue and error message to red color.



from Don't change textinputlayout hint color while setting error

No comments:

Post a Comment