I\'m trying to implement a simple colorfilter on an imageview to turn the black image into a white image. In order to achieve that I do the following:
we
For me only this solution worked:
image.setColorFilter(Color.BLACK, PorterDuff.Mode.MULTIPLY); image.setImageResource(R.drawable.img);
filter applies if R.drawable.img is vector image, and has no effect for raster resource
R.drawable.img