CircularImageView icon indicating copy to clipboard operation
CircularImageView copied to clipboard

setColorFilter not working

Open Anth06ny opened this issue 10 years ago • 0 comments

Hi, I don't arrive to change the color of my image with setColorFilter

This is my code CircularImageView civ = (CircularImageView) rowView.findViewById(R.id.civ); ImageView iv = (ImageView) rowView.findViewById(R.id.iv); civ.setImageResource(R.drawable.ic_menu); iv.setImageResource(R.drawable.ic_menu);

civ.setColorFilter(getResources().getColor(R.color.vivid_green), PorterDuff.Mode.MULTIPLY); iv.setColorFilter(getResources().getColor(R.color.vivid_green), PorterDuff.Mode.MULTIPLY);

Work on imageview but not on CircularImageView.

I have try with Drawable d = getResources().getDrawable(R.drawable.ic_menu); d.setColorFilter(viewHolder.root.getResources().getColor(R.color.vivid_green), PorterDuff.Mode.MULTIPLY);

But it's not working too

Thanks for your work on this library

Anth06ny avatar Feb 09 '15 15:02 Anth06ny