I keep on getting this error when I try to setErrorEnabled
on my textInputLayout
:
03-12 12:29:03.206 5706-5706/? E/AndroidRuntime:
For me a following works (https://stackoverflow.com/a/42779409/2914140):
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="textColorError">@color/design_textinput_error_color_light</item>
</style>
Just change the base theme for TextLabel to Widget.Design.TextInputLayout
<style name="TextLabel" parent="Widget.Design.TextInputLayout">