Example usage for android.view.accessibility AccessibilityEvent appendRecord

List of usage examples for android.view.accessibility AccessibilityEvent appendRecord

Introduction

In this page you can find the example usage for android.view.accessibility AccessibilityEvent appendRecord.

Prototype

public void appendRecord(AccessibilityRecord record) 

Source Link

Document

Appends an AccessibilityRecord to the end of event records.

Usage

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

@Override
public boolean onRequestSendAccessibilityEvent(View child, AccessibilityEvent event) {
    if (super.onRequestSendAccessibilityEvent(child, event)) {
        // Add a record for ourselves as well.
        AccessibilityEvent record = AccessibilityEvent.obtain();
        onInitializeAccessibilityEvent(record);
        // Populate with the text of the requesting child.
        child.dispatchPopulateAccessibilityEvent(record);
        event.appendRecord(record);
        return true;
    }/*from ww  w.  j  av a  2 s. c om*/
    return false;
}