material-components-android
material-components-android copied to clipboard
[TextInputLayout] background color of the indicatorArea when error is displayed
trafficstars
Sometimes in the TextInputLayout the error text is not full visible.
Instead of changing the errorTextColor could be useful an option to change the background color leaving the std errorTextColor.
Example:

This change adds an option to tint the background color of the indicatorArea when an error is displayed.
The default background doesn't change the current behavior.
Example:
<com.google.android.material.textfield.TextInputLayout
app:indicatorAreaBackgroundColorOnError="@color/indicator_area_backgroundcolor_selector"
or:
labelTextField.setIndicatorAreaBackgroundColorOnError(...);
It can close #1250