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:
weatherImg.setColorFilter(Color.BLACK, PorterDuff.Mode.MULTIPLY);
weatherImg.setImageResource(R.drawable.b_clouded_rain);
I've also tried to change to color in the color filter to red and white but all of them have no effect, what am I doing wrong?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…