Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想从服务器调用图像,当我单击按钮时,我在 imageview 的背景中使用图像,它会将 imageview 的前景颜色更改为黑色(仍然显示图像但更暗)
这个怎么做 ?
试试这个代码:
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找到这个并为我工作..