Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app:cp_itemTextColor causes crash #7

Open
GunnarKarlsson opened this issue Apr 16, 2015 · 1 comment
Open

app:cp_itemTextColor causes crash #7

GunnarKarlsson opened this issue Apr 16, 2015 · 1 comment

Comments

@GunnarKarlsson
Copy link

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;

@qiyuanchen
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants