Example usage for android.view.accessibility AccessibilityNodeInfo ACTION_DISMISS

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

Introduction

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

Prototype

int ACTION_DISMISS

To view the source code for android.view.accessibility AccessibilityNodeInfo ACTION_DISMISS.

Click Source Link

Document

Action to dismiss a dismissable node.

Usage

From source file:com.android.talkbacktests.testsession.DismissibleViewTest.java

@Override
public void onClick(View view) {
    switch (view.getId()) {
    case R.id.test_dismissible_view_dismiss_button:
        if (mContainer.getChildCount() > 1) {
            mDismissibleView.performAccessibilityAction(AccessibilityNodeInfo.ACTION_DISMISS, null);
        }/*w w w  . j  ava2 s .  c o m*/
        break;
    case R.id.test_dismissible_view_reset_button:
        if (mContainer.getChildCount() < 2) {
            mContainer.addView(mDismissibleView);
        }
        break;
    }
}