Android开发笔记之:如何屏蔽Button setClickable与setEnabled
今天想让按键暂时无效,满足一定条件下才可以被用户按到。最初以为是setClickable,谁知搞错了。请看手册: 代码如下:public void setClickable (boolean clickable)Since: API Level 14Sets whether this node is clickable.Note: Cannot be called from an AccessibilityService. This class is made immutable before being delivered to an AccessibilityService.Paramet
用户评论