Example usage for android.app Fragment onCreateOptionsMenu

List of usage examples for android.app Fragment onCreateOptionsMenu

Introduction

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

Prototype

public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) 

Source Link

Document

Initialize the contents of the Activity's standard options menu.

Usage

From source file:tw.idv.palatis.danboorugallery.NewHostActivity.java

@Override
public boolean onCreateOptionsMenu(Menu menu) {
    Fragment fragment = getFragmentManager().findFragmentById(R.id.new_host_inputs_container);
    if (fragment != null)
        fragment.onCreateOptionsMenu(menu, getMenuInflater());
    return super.onCreateOptionsMenu(menu);
}