Failed to inflate ColorStateList, leaving it to the framework java.lang.UnsupportedOperationException: Can't convert to color: type=0x2

后端 未结 1 1917
既然无缘
既然无缘 2021-01-04 01:58

I have a login part and I use TextInputLayout for email and password. Both of them are the same. Also I use Data binding to show the Error message.

The error is happ

相关标签:
1条回答
  • 2021-01-04 02:53

    So, I have finished with this solution that works for me.

    To TextInputLayout add this string

    app:errorTextAppearance="@style/MyAppTheme.TextInputLayout"
    

    And add new style to styles.xml

        <style name="MyAppTheme.TextInputLayout" parent="@android:style/TextAppearance">
             <item name="android:textColor">@color/red</item>
        </style>
    
    0 讨论(0)
提交回复
热议问题