以编程方式从android中的图像视图中删除背景图片 [英] programmatically remove background picture from image view in android
本文介绍了以编程方式从android中的图像视图中删除背景图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已在Android应用程序的图像视图中设置了背景图像.现在,我要以编程方式删除此背景图片.该怎么做?
I have set a background image in inmage view in my android application. Now I want to remove this background picture programmatically. How to do this?
推荐答案
imgView.setImageResource(android.R.color.transparent);
这篇关于以编程方式从android中的图像视图中删除背景图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文