Java Code Examples for android.view.accessibility.AccessibilityEvent#setChecked()
The following examples show how to use
android.view.accessibility.AccessibilityEvent#setChecked() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BrowserAccessibilityManager.java From 365browser with Apache License 2.0 | 5 votes |
@CalledByNative private void setAccessibilityEventBooleanAttributes(AccessibilityEvent event, boolean checked, boolean enabled, boolean password, boolean scrollable) { event.setChecked(checked); event.setEnabled(enabled); event.setPassword(password); event.setScrollable(scrollable); }
Example 2
Source File: CustomViewAccessibilityActivity.java From codeexamples-android with Eclipse Public License 1.0 | 5 votes |
@Override public void onInitializeAccessibilityEvent(AccessibilityEvent event) { super.onInitializeAccessibilityEvent(event); // We called the super implementation to let super classes // set appropriate event properties. Then we add the new property // (checked) which is not supported by a super class. event.setChecked(isChecked()); }
Example 3
Source File: BrowserAccessibilityManager.java From android-chromium with BSD 2-Clause "Simplified" License | 5 votes |
@CalledByNative private void setAccessibilityEventBooleanAttributes(AccessibilityEvent event, boolean checked, boolean enabled, boolean password, boolean scrollable) { event.setChecked(checked); event.setEnabled(enabled); event.setPassword(password); event.setScrollable(scrollable); }
Example 4
Source File: BrowserAccessibilityManager.java From android-chromium with BSD 2-Clause "Simplified" License | 5 votes |
@CalledByNative private void setAccessibilityEventBooleanAttributes(AccessibilityEvent event, boolean checked, boolean enabled, boolean password, boolean scrollable) { event.setChecked(checked); event.setEnabled(enabled); event.setPassword(password); event.setScrollable(scrollable); }
Example 5
Source File: CompoundButton.java From android_9.0.0_r45 with Apache License 2.0 | 4 votes |
/** @hide */ @Override public void onInitializeAccessibilityEventInternal(AccessibilityEvent event) { super.onInitializeAccessibilityEventInternal(event); event.setChecked(mChecked); }
Example 6
Source File: CheckedTextView.java From android_9.0.0_r45 with Apache License 2.0 | 4 votes |
/** @hide */ @Override public void onInitializeAccessibilityEventInternal(AccessibilityEvent event) { super.onInitializeAccessibilityEventInternal(event); event.setChecked(mChecked); }
Example 7
Source File: CopyNodeView.java From timecat with Apache License 2.0 | 4 votes |
public void onInitializeAccessibilityEvent(AccessibilityEvent event) { super.onInitializeAccessibilityEvent(event); event.setChecked(selected); }
Example 8
Source File: AccessibilityHelper.java From react-native-GPay with MIT License | 4 votes |
@Override public void onInitializeAccessibilityEvent(View host, AccessibilityEvent event) { super.onInitializeAccessibilityEvent(host, event); event.setClassName(RadioButton.class.getName()); event.setChecked(true); }
Example 9
Source File: AccessibilityHelper.java From react-native-GPay with MIT License | 4 votes |
@Override public void onInitializeAccessibilityEvent(View host, AccessibilityEvent event) { super.onInitializeAccessibilityEvent(host, event); event.setClassName(RadioButton.class.getName()); event.setChecked(false); }
Example 10
Source File: MaterialCardView.java From material-components-android with Apache License 2.0 | 4 votes |
@Override public void onInitializeAccessibilityEvent(@NonNull AccessibilityEvent accessibilityEvent) { super.onInitializeAccessibilityEvent(accessibilityEvent); accessibilityEvent.setClassName(ACCESSIBILITY_CLASS_NAME); accessibilityEvent.setChecked(isChecked()); }
Example 11
Source File: MaterialButton.java From material-components-android with Apache License 2.0 | 4 votes |
@Override public void onInitializeAccessibilityEvent(@NonNull AccessibilityEvent accessibilityEvent) { super.onInitializeAccessibilityEvent(accessibilityEvent); accessibilityEvent.setClassName(getA11yClassName()); accessibilityEvent.setChecked(isChecked()); }
Example 12
Source File: CheckedTextView.java From ticdesign with Apache License 2.0 | 4 votes |
@Override public void onInitializeAccessibilityEvent(AccessibilityEvent event) { super.onInitializeAccessibilityEvent(event); event.setClassName(CheckedTextView.class.getName()); event.setChecked(mChecked); }
Example 13
Source File: MaterialCompoundButton.java From MaterialRadioGroup with Apache License 2.0 | 4 votes |
@Override public void onInitializeAccessibilityEvent(AccessibilityEvent event) { super.onInitializeAccessibilityEvent(event); event.setClassName(MaterialCompoundButton.class.getName()); event.setChecked(mButtonView.isChecked()); }
Example 14
Source File: CheckBox.java From Carbon with Apache License 2.0 | 4 votes |
@Override public void onInitializeAccessibilityEvent(AccessibilityEvent event) { super.onInitializeAccessibilityEvent(event); event.setChecked(isChecked()); }
Example 15
Source File: RadioButton.java From Carbon with Apache License 2.0 | 4 votes |
@Override public void onInitializeAccessibilityEvent(AccessibilityEvent event) { super.onInitializeAccessibilityEvent(event); event.setChecked(isChecked()); }
Example 16
Source File: RadialMenuView.java From talkback with Apache License 2.0 | 4 votes |
@Override protected void populateEventForItem(RadialMenuItem item, AccessibilityEvent event) { event.setContentDescription(item.getTitle()); event.setChecked(item.isChecked()); event.setEnabled(item.isEnabled()); }