Example usage for android.view.accessibility AccessibilityNodeInfo setEnabled

List of usage examples for android.view.accessibility AccessibilityNodeInfo setEnabled

Introduction

In this page you can find the example usage for android.view.accessibility AccessibilityNodeInfo setEnabled.

Prototype

public void setEnabled(boolean enabled) 

Source Link

Document

Sets whether this node is enabled.

Usage

From source file:com.actionbarsherlock.internal.widget.IcsAdapterView.java

@Override
public void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo info) {
    super.onInitializeAccessibilityNodeInfo(info);
    info.setScrollable(isScrollableForAccessibility());
    View selectedView = getSelectedView();
    if (selectedView != null) {
        info.setEnabled(selectedView.isEnabled());
    }/*from w ww.ja va  2  s  . c  o m*/
}