@Override public void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo info) { super.onInitializeAccessibilityNodeInfo(info); info.setClassName(MaterialCompoundButton.class.getName()); info.setCheckable(true); info.setChecked(mButtonView.isChecked()); }
@Override public void onInitializeAccessibilityEvent(AccessibilityEvent event) { super.onInitializeAccessibilityEvent(event); event.setClassName(MaterialCompoundButton.class.getName()); event.setChecked(mButtonView.isChecked()); }
@Override public boolean isChecked() { return mButtonView.isChecked(); }