Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change style of the right icon error TextInputLayout

I want to change the style of the right icon error (the image with ! sign) in a TextInputLayout but I don't find how.

It is possible?.

TextInputLayout

like image 463
Melisa Torres Avatar asked Nov 08 '22 13:11

Melisa Torres


1 Answers

With the Material Component Library just use the app:errorIconDrawable attribute.

Something like:

<com.google.android.material.textfield.TextInputLayout
    app:errorIconDrawable="@drawable/..."
    ../>

enter image description here

like image 184
Gabriele Mariotti Avatar answered Nov 15 '22 04:11

Gabriele Mariotti