Francesco verheye
Francesco verheye

Reputation: 1574

Drawable change color - keep transparant background

I have a drawable in my /res/drawable which looks like this:

icon

How can I modify the drawable (code) so that I got a blue clock instead.

Upvotes: 0

Views: 98

Answers (1)

devops
devops

Reputation: 9187

Try ImageView#setColorFilter

_myImgView.setColorFilter(Color.argb(255, 0, 0, 255)); // blue

Upvotes: 2

Related Questions