I am writing an app where I have an icon on an image button that looks like a paintbrush with paint on it. When ever the user changes colors, I want the paint on the brush to change to the chosen color.
I have tried making the icon's paint white and tinting the image button, but this just tints the whole paintbrush image. I have also tried setColorFilter() without success. Anyone know how I might be able to accomplish this without creating a drawable resource for every color?
Edit: Perhaps I should clarify,
If I have an icon that looks like this
Then when the user selects red, it should look like this
Thanks