1. 首页
  2. 数据库
  3. 其它
  4. Android开发笔记之:如何屏蔽Button setClickable与setEnabled

Android开发笔记之:如何屏蔽Button setClickable与setEnabled

上传者: 2021-01-16 11:43:26上传 PDF文件 38.77KB 热度 6次
今天想让按键暂时无效,满足一定条件下才可以被用户按到。最初以为是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
用户评论