Example usage for android.view MenuInflater inflate

List of usage examples for android.view MenuInflater inflate

Introduction

In this page you can find the example usage for android.view MenuInflater inflate.

Prototype

public void inflate(@MenuRes int menuRes, Menu menu) 

Source Link

Document

Inflate a menu hierarchy from the specified XML resource.

Usage

From source file:com.adam.aslfms.MusicAppsActivity.java

@Override
public boolean onCreateOptionsMenu(Menu menu) {
    MenuInflater inflater = getMenuInflater();
    inflater.inflate(R.menu.clearapps, menu);
    return super.onCreateOptionsMenu(menu);
}

From source file:com.adam.aslfms.StatusActivity.java

@Override
public boolean onCreateOptionsMenu(Menu menu) {
    MenuInflater inflater = getMenuInflater();
    inflater.inflate(R.menu.status, menu);
    return super.onCreateOptionsMenu(menu);
}

From source file:com.springsource.greenhouse.profile.ProfileActivity.java

@Override
public boolean onCreateOptionsMenu(Menu menu) {
    MenuInflater inflater = getMenuInflater();
    inflater.inflate(R.menu.profile_menu, menu);
    return true;/*w  w w  .j  a va  2  s. c  o  m*/
}

From source file:no.ntnu.idi.socialhitchhiking.utility.SocialHitchhikingActivity.java

@Override
/**/*from w ww  . j a va 2 s  .  c  o  m*/
 * Creates a menu from the xml_menu.xml file.
 * 
 */
public boolean onCreateOptionsMenu(Menu menu) {
    MenuInflater inflater = getMenuInflater();
    inflater.inflate(R.menu.xml_menu, menu);
    return super.onCreateOptionsMenu(menu);
}

From source file:com.example.android.actionbarcompat.morf.MainActivity.java

@Override
public boolean onCreateOptionsMenu(Menu menu) {
    // Inflate menu from menu resource (res/menu/main)
    MenuInflater inflater = getMenuInflater();
    inflater.inflate(R.menu.main, menu);
    return super.onCreateOptionsMenu(menu);

}

From source file:co.uk.alt236.restclient4android.fragments.FragmentNetworkResult.java

public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
    inflater.inflate(R.menu.menu_fragment_result, menu);
    super.onCreateOptionsMenu(menu, inflater);

}

From source file:com.androguide.apkreator.fragments.YouTubeFragment.java

@Override
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
    inflater.inflate(R.menu.youtube_menu, menu);
}

From source file:devsoftprog.java.file.manager.android.fm_f_and.WebActivity.java

@Override
public boolean onCreateOptionsMenu(Menu menu) {
    MenuInflater inflater = getMenuInflater();
    inflater.inflate(R.menu.web, menu);
    return true;//from   ww  w.  j  av a  2  s. c  o m
}

From source file:ca.six.unittestapp.todo.taskdetail.TaskDetailFragment.java

@Override
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
    inflater.inflate(R.menu.taskdetail_fragment_menu, menu);
}

From source file:com.makotosan.vimeodroid.ManageTransfersActivity.java

@Override
public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
    super.onCreateContextMenu(menu, v, menuInfo);
    MenuInflater inflater = getMenuInflater();
    inflater.inflate(R.menu.transfercontextmenu, menu);
}