Closed. This question is off-topic。它当前不接受答案。
想改善这个问题吗? Update the question,所以它是on-topic,用于堆栈溢出。
5年前关闭。
如何更改
我有一个简单的
让我知道
想改善这个问题吗? Update the question,所以它是on-topic,用于堆栈溢出。
5年前关闭。
如何更改
ImageView
的颜色?我有一个简单的
png
,我想动态更改颜色。 private ImageView iconImage;
最佳答案
您的问题有点笼统。但是,对于一些简单的图像,您可以通过以下方式尝试:
ColorFilter filter;
filter = new LightingColorFilter(0,Color.parseColor(variableColor));
iconImage.setColorFilter(filter);
让我知道