xx.setBackgroundResource(0);
根据文档public void setBackgroundResource (int resid)
Since: API Level 1
Set the background to a given resource. The resource should refer to a Drawable object or 0 to remove the background.
所以设置为0就是删除背景。
Android 控件移除已经设置的background
最新推荐文章于 2025-03-30 19:20:59 发布