【发布时间】:2014-12-09 09:44:35
【问题描述】:
我正在使用以下命令在 frameLayout 上绘制边框:
frameLayout.setForeground(getResources().getDrawable(R.drawable.blue_border));
现在我想删除这个前景可绘制对象。我该怎么做?
【问题讨论】:
标签: android android-drawable android-framelayout
我正在使用以下命令在 frameLayout 上绘制边框:
frameLayout.setForeground(getResources().getDrawable(R.drawable.blue_border));
现在我想删除这个前景可绘制对象。我该怎么做?
【问题讨论】:
标签: android android-drawable android-framelayout
传递 null 作为参数就足够了:
frameLayout.setForeground(null);
【讨论】: