Example usage for android.app Fragment performOptionsItemSelected

List of usage examples for android.app Fragment performOptionsItemSelected

Introduction

In this page you can find the example usage for android.app Fragment performOptionsItemSelected.

Prototype

boolean performOptionsItemSelected(MenuItem item) 

Source Link

Usage

From source file:android.app.FragmentManager.java

public boolean dispatchOptionsItemSelected(MenuItem item) {
    if (mAdded != null) {
        for (int i = 0; i < mAdded.size(); i++) {
            Fragment f = mAdded.get(i);
            if (f != null) {
                if (f.performOptionsItemSelected(item)) {
                    return true;
                }//from w  ww. j  a  va2s.  c  o  m
            }
        }
    }
    return false;
}