You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In xml layout, set app:cp_itemTextColor="@android:color/black"
Runtime Exception shows that CollectionPicking is trying to interpret a resolved color (0xFF000000) as a color id.
I think the issue is that this.mTextColor = typeArray.getColor(R.styleable.CollectionPicker_cp_itemTextColor, mTextColor);
gives you a resolved color int, not an id int, if passed in via xml. Fixable by passing resolved color to View, and setting private int mTextColor = 0xFFFFFFFF;
The text was updated successfully, but these errors were encountered:
How to reproduce:
In xml layout, set
app:cp_itemTextColor="@android:color/black"
Runtime Exception shows that CollectionPicking is trying to interpret a resolved color (0xFF000000) as a color id.
I think the issue is that
this.mTextColor = typeArray.getColor(R.styleable.CollectionPicker_cp_itemTextColor, mTextColor);
gives you a resolved color int, not an id int, if passed in via xml. Fixable by passing resolved color to View, and setting
private int mTextColor = 0xFFFFFFFF;
The text was updated successfully, but these errors were encountered: