Foursquare-CollectionPicker icon indicating copy to clipboard operation
Foursquare-CollectionPicker copied to clipboard

app:cp_itemTextColor causes crash

Open GunnarKarlsson opened this issue 9 years ago • 1 comments

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;

GunnarKarlsson avatar Apr 16 '15 05:04 GunnarKarlsson

Hi was there a fix for this? Having the same issue

qiyuanchen avatar May 13 '16 04:05 qiyuanchen