Android如何设置视图的透明图像资源?或删除图像?

2024-04-05

((ImageView) v.findViewById(R.id.imageViewHeart1)).setImageResource(R.drawable.heart);

我想从图像资源中删除图形,因此:

((ImageView) v.findViewById(R.id.imageViewHeart1)).setImageResource(null);

或者什么,我该怎么做?


如果删除图像然后使用

((ImageView) v.findViewById(R.id.imageViewHeart1)).setImageResource(0);

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Android如何设置视图的透明图像资源?或删除图像? 的相关文章

随机推荐