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

Color tint support for @BindDrawable #976

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

sp00ne
Copy link

@sp00ne sp00ne commented Jun 15, 2017

Hi there Jake!

I'm a great fan of your work :) Something that I noticed was the need for color resource support in the tinting of drawables, the pull request adds @ColorRes annotation for the tint binding and makes the necessary changes to the code for it to work. I expanded the sample activity to include an ImageView that is tinted in this manner.

I hope this meets your standards.

Best regards,
Mohsen Farzone

@JakeWharton
Copy link
Owner

I'm not sure that I want to conflate this attribute with two meanings. Is there a reason you don't want to define the color you're tinting with on the theme?

@sp00ne
Copy link
Author

sp00ne commented Jun 16, 2017

Yeah, in most cases where I work (especially larger projects) the colors are not associated with the theme or there is a situational basis for the coloring

Repository owner deleted a comment from ivanick87 Jul 31, 2017
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

Successfully merging this pull request may close these issues.

2 participants