android - How do you change EditText line/field color on TextInputLayout (when calling setError)? -
when invoke seterror on textinputlayout new android design support library line color not change. error appear correct color.
this code i'm using:
textinputlayout.seterror("error message"); per material design spec text fields when there error, line/field color should red.
how can set color of line?
if can done side effect of invoking seterror great.
you can add
edittext.getbackground().setcolorfilter(color.red, porterduff.mode.src_atop);
after your
textinputlayout.seterror("error message");.
Comments
Post a Comment