Failed To Inflate Colorstatelist, Leaving It To The Framework Java.lang.unsupportedoperationexception: Can't Convert To Color: Type=0x2
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 happening on API &l
Solution 1:
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
<stylename="MyAppTheme.TextInputLayout"parent="@android:style/TextAppearance"><itemname="android:textColor">@color/red</item></style>
Post a Comment for "Failed To Inflate Colorstatelist, Leaving It To The Framework Java.lang.unsupportedoperationexception: Can't Convert To Color: Type=0x2"