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

Setting a color drawable as the imageDrawable does not work in Android 5.0 #23

Closed
nemphys opened this issue Nov 9, 2014 · 1 comment
Labels

Comments

@nemphys
Copy link

nemphys commented Nov 9, 2014

In my use case, the circle should sometimes display an image (which I load through Glide) and sometimes should have a solid color (which I set .setImageDrawable(new clorDrawable(Color.parseColor(....))).
The latter works fine in < Android 5.0, but only displays a gray color in Android 5.0
Any ideas?

@nemphys
Copy link
Author

nemphys commented Nov 10, 2014

OK, if I change COLORDRAWABLE_DIMENSION to 2 (instead of 1) it works properly in Android 5.0.
Maybe you could change that, so that we don't have to use a custom version of the view just for this minor change.

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

No branches or pull requests

2 participants