TextInputLayout: RuntimeException - Failed to resolve attribute at index 24

后端 未结 2 2082
孤街浪徒
孤街浪徒 2021-01-03 20:42

I keep on getting this error when I try to setErrorEnabled on my textInputLayout :

03-12 12:29:03.206 5706-5706/? E/AndroidRuntime:         


        
相关标签:
2条回答
  • 2021-01-03 20:45

    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>
    
    0 讨论(0)
  • 2021-01-03 21:07

    Just change the base theme for TextLabel to Widget.Design.TextInputLayout

    <style name="TextLabel" parent="Widget.Design.TextInputLayout">
    
    0 讨论(0)
提交回复
热议问题