setEnabled

来源:互联网 发布:知乎精华化妆品 编辑:程序博客网 时间:2024/05/16 19:10


让一个按键可以被用户按,或者不可按。如果设为false,按键则会变成灰色的,按上去也没反应。当设为true后,才会正常使用。


public void setEnabled (boolean enabled) Sets whether this node is enabled. Note: Cannot be called from an AccessibilityService. This class is made immutable before being delivered to an AccessibilityService.  enabled True if the node is enabled. Throws IllegalStateException   If called from an AccessibilityService. 




0 0
原创粉丝点击