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?. 回答1: With the Material Component Library just use the app:errorIconDrawable attribute. Something like: <com.google.android.material.textfield.TextInputLayout app:errorIconDrawable="@drawable/..." ../> 回答2: To do this in your Java class, you can do something like this: // initialize your drawable object Drawable myErrorDrawable = getResources().getDrawable(R