1

我想从服务器调用图像,当我单击按钮时,我在 imageview 的背景中使用图像,它会将 imageview 的前景颜色更改为黑色(仍然显示图像但更暗)

这个怎么做 ?

4

1 回答 1

0

试试这个代码:

image.setColorFilter(Color.rgb(123,73,122), android.graphics.PorterDuff.Mode.MULTIPLY );

从http://suryaandriodapps.blogspot.com/2011/12/apply-color-to-imageview-png-file.html?zx=e251678f0452e874找到这个并为我工作..

于 2012-01-12T07:28:24.483 回答