Best code examples for Android AccessibilityNodeInfo class (android.view.accessibility.AccessibilityNodeInfo)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android AccessibilityNodeInfo class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Android AccessibilityNodeInfo examples from Open Source projects
This code example shows how to use the following methods: setClassName, setEnabled, setScrollable
463:	super.onInitializeAccessibilityNodeInfo(info); 
464:	info.setClassName(AdapterView.class.getName()); 
465:	info.setScrollable(isScrollableForAccessibility()); 
-
468:	info.setEnabled(selectedView.isEnabled()); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: setCheckable, setChecked, setText
95:	info.setCheckable(true); 
96:	info.setChecked(isChecked()); 
-
100:	info.setText(text); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: addAction, setClickable, setMovementGranularities
45:	info.setMovementGranularities(AccessibilityNodeInfo.MOVEMENT_GRANULARITY_CHARACTER | 
-
50:	info.addAction(AccessibilityNodeInfo.ACTION_NEXT_AT_MOVEMENT_GRANULARITY); 
51:	info.addAction(AccessibilityNodeInfo.ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY); 
52:	info.addAction(AccessibilityNodeInfo.ACTION_NEXT_HTML_ELEMENT); 
53:	info.addAction(AccessibilityNodeInfo.ACTION_PREVIOUS_HTML_ELEMENT); 
54:	info.addAction(AccessibilityNodeInfo.ACTION_CLICK); 
55:	info.setClickable(true); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getText, setClassName, setText
492:	info.setClassName(Switch.class.getName()); 
-
495:	CharSequence oldText = info.getText(); 
-
497:	info.setText(switchText); 
-
501:	info.setText(newText); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: addAction, setClickable, setMovementGranularities
44:	info.setMovementGranularities(AccessibilityNodeInfo.MOVEMENT_GRANULARITY_CHARACTER | 
-
49:	info.addAction(AccessibilityNodeInfo.ACTION_NEXT_AT_MOVEMENT_GRANULARITY); 
50:	info.addAction(AccessibilityNodeInfo.ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY); 
51:	info.addAction(AccessibilityNodeInfo.ACTION_NEXT_HTML_ELEMENT); 
52:	info.addAction(AccessibilityNodeInfo.ACTION_PREVIOUS_HTML_ELEMENT); 
53:	info.addAction(AccessibilityNodeInfo.ACTION_CLICK); 
54:	info.setClickable(true); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setCheckable, setChecked, setText
163:	info.setCheckable(true); 
164:	info.setChecked(isChecked()); 
-
168:	info.setText(text); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setCheckable, setChecked, setText
163:	info.setCheckable(true); 
164:	info.setChecked(isChecked()); 
-
168:	info.setText(text); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setEnabled, setScrollable
895:	info.setScrollable(isScrollableForAccessibility()); 
-
898:	info.setEnabled(selectedView.isEnabled()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setClassName, setEnabled, setScrollable
463:	super.onInitializeAccessibilityNodeInfo(info); 
464:	info.setClassName(AdapterView.class.getName()); 
465:	info.setScrollable(isScrollableForAccessibility()); 
-
468:	info.setEnabled(selectedView.isEnabled()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setClassName
44:	info.setClassName(Button.class.getName()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setBoundsInParent, setBoundsInScreen
373:	node.setBoundsInParent(boundsInParent); 
-
397:	node.setBoundsInScreen(rect); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setClassName
44:	info.setClassName(Button.class.getName()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setEnabled, setScrollable
895:	info.setScrollable(isScrollableForAccessibility()); 
-
898:	info.setEnabled(selectedView.isEnabled()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: writeToParcel
168:	mAccessibilityNodeInfo.writeToParcel(out, flags); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setClassName, setEnabled, setScrollable
474:	super.onInitializeAccessibilityNodeInfo(info); 
475:	info.setClassName(AdapterView.class.getName()); 
476:	info.setScrollable(isScrollableForAccessibility()); 
-
479:	info.setEnabled(selectedView.isEnabled()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getClassName, getContentDescription, getText
119:	node.getClassName(), 
120:	node.getText(), 
121:	node.getContentDescription())); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setClassName, setEnabled, setScrollable
463:	super.onInitializeAccessibilityNodeInfo(info); 
464:	info.setClassName(AdapterView.class.getName()); 
465:	info.setScrollable(isScrollableForAccessibility()); 
-
468:	info.setEnabled(selectedView.isEnabled()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getBoundsInScreen, getClassName
234:	String text = ScreenUtilities.getNodeText(node); 
-
239:	sb.append(node.getClassName()); 
-
243:	node.getBoundsInScreen(location); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: recycle
236:	if ((node = ScreenUtilities.findTextNode(root)) == null) { 
237:	node =  ScreenUtilities.findDescribedNode(root); 
-
241:	root.recycle(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: recycle
221:	ScreenElement element = currentScreen.findRenderedScreenElement(node); 
-
230:	ScreenTextEditor editor = ScreenTextEditor.getIfFocused(node); 
-
267:	node.recycle(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setClassName
132:	info.setClassName(ViewFlipper.class.getName()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setClassName
78:	info.setClassName(ExtendedImageButton.class.getName()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setClassName
43:	super.onInitializeAccessibilityNodeInfo(info); 
44:	info.setClassName(SeekBar.class.getName()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setClassName
188:	info.setClassName(CompoundImageButton.class.getName()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setClassName
44:	info.setClassName(Button.class.getName()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getText, setClassName, setText
492:	info.setClassName(Switch.class.getName()); 
-
495:	CharSequence oldText = info.getText(); 
-
497:	info.setText(switchText); 
-
501:	info.setText(newText); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setClassName
112:	super.onInitializeAccessibilityNodeInfo(info); 
113:	info.setClassName(MultiAutoCompleteTextView.class.getName()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setClassName
43:	super.onInitializeAccessibilityNodeInfo(info); 
44:	info.setClassName(SeekBar.class.getName()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setClassName
184:	super.onInitializeAccessibilityNodeInfo(info); 
185:	info.setClassName(AbsSpinner.class.getName()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getText, setClassName, setText
486:	info.setClassName(Switch.class.getName()); 
-
489:	CharSequence oldText = info.getText(); 
-
491:	info.setText(switchText); 
-
495:	info.setText(newText); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setClassName
44:	info.setClassName(Button.class.getName()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setClassName
496:	super.onInitializeAccessibilityNodeInfo(info); 
497:	info.setClassName(GDAbsSpinner.class.getName()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setClassName
42:	super.onInitializeAccessibilityNodeInfo(info); 
43:	info.setClassName(SeekBar.class.getName()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setClassName
182:	super.onInitializeAccessibilityNodeInfo(info); 
183:	info.setClassName(AbsSpinner.class.getName()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setClassName
44:	info.setClassName(Button.class.getName()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setClassName
44:	info.setClassName(Button.class.getName()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getText, setClassName, setText
845:	info.setClassName(Switch.class.getName()); 
-
848:	CharSequence oldText = info.getText(); 
-
850:	info.setText(switchText); 
-
854:	info.setText(newText); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setClassName
44:	info.setClassName(Button.class.getName()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setClassName
44:	info.setClassName(Button.class.getName()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setClassName
20:	info.setClassName(Button.class.getName()); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: obtain
39:	return AccessibilityNodeInfo.obtain((AccessibilityNodeInfo) info); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: obtain
124:	final AccessibilityNodeInfo clone = AccessibilityNodeInfo.obtain(node); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: obtain
39:	return AccessibilityNodeInfo.obtain((AccessibilityNodeInfo) info); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: obtain
115:	final AccessibilityNodeInfo clone = AccessibilityNodeInfo.obtain(node); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: getBoundsInScreen
42:	node.getBoundsInScreen(nodeRect); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: addAction
751:	info.addAction(AccessibilityNodeInfo.ACTION_SCROLL_FORWARD); 
752:	info.addAction(AccessibilityNodeInfo.ACTION_SCROLL_BACKWARD); 
Full Snippet Info
3
CodeRank
Related Android AccessibilityNodeInfo Questions & Answers:
See Code Examples for Android AccessibilityNodeInfo Methods: