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

后端 未结 1 1913
既然无缘
既然无缘 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

        
    

    0 讨论(0)
提交回复
热议问题