I would like to know how to change the error color of the TextInputLayout underline.
Just use the app:boxStrokeErrorColor
attribute:
<com.google.android.material.textfield.TextInputLayout
app:boxStrokeErrorColor="@color/primaryLightColor"
...>
It requires Material Components lirabry version 1.2.0
.