I can’t change background color of error text box color.
Want to change the background color of error box not text color.The way i tried to set setErrorTextColor,setErrorColor,setBackGroundColor not defined. kindly suggest some solution.
Thanks in advance.
I would recommend you switch to Material.io TextInputLayout which not only provides a smoother error handling API but also has more customization features
2
Answers
You can change the color of the error block of editText by using the following code.
I would recommend you switch to Material.io TextInputLayout which not only provides a smoother error handling API but also has more customization features
For an in-depth documentation of all the features that come with Material.io version of Edittext, go to Material.io Text Field – Android