view.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.
所以设置为o就是删除背景。
移除背景资源
本文介绍如何使用setBackgroundResource方法将视图背景设置为指定资源或将背景删除。当参数设置为0时,表示移除当前视图的背景。
view.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.
所以设置为o就是删除背景。

被折叠的 条评论
为什么被折叠?