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

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Magento/PHP - Get phones on all members in a customer group -

session - Logging Out Using PHP -