greenfrvr / hashtag-view

Android fully customizable widget for representing data like hashtags collection and similiar.
MIT License
336 stars 54 forks source link

library doesn't let use selector in tagTextColor attrribute #13

Closed yankeppey closed 8 years ago

yankeppey commented 9 years ago

Hi, first of all, thank you for your library. Unfortunately it doesn't let user to use color selectors in tagTextColor attribute. In my app I need to change text color depending on is tag selected or not (because the background changes significantly as well). Is there any special reason for it? The implementation is very simple:

private void extractAttributes(AttributeSet attrs) {
    //...
    itemTextColorStateList = a.getColorStateList(R.styleable.HashtagView_tagTextColor);
    //...  
}

private void decorateItemTextView(TextView textView) {
    //textView.setTextColor(itemTextColor);
    textView.setTextColor(itemTextColorStateList);
    //...
}

Or do I miss any point?

greenfrvr commented 8 years ago

sorry for keeping waiting, I have already implemented color state list support and will add this to next release (almost sure it's gonna be this week)