本文翻译自:Set transparent background of an imageview on Android
I am using a web view in which I am adding an image view. 我正在使用Web视图,我在其中添加图像视图。 How can I set the background of this image view to transparent? 如何将此图像视图的背景设置为透明?
I have tried this: 我试过这个:
mImageview.setBackgroundResource(R.color.trans);
Where trans
→ <color name="trans">#00000000 </color>
. trans
→ <color name="trans">#00000000 </color>
。