use of android.view.MenuInflater in project MaterialDrawer by mikepenz.
the class FragmentActivity method onCreateOptionsMenu.
@Override
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.fragment_menu, menu);
return true;
}
use of android.view.MenuInflater in project MaterialDrawer by mikepenz.
the class MiniDrawerActivity method onCreateOptionsMenu.
@Override
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater();
if (SystemUtils.getScreenOrientation() == Configuration.ORIENTATION_LANDSCAPE) {
inflater.inflate(R.menu.embedded, menu);
menu.findItem(R.id.menu_1).setIcon(new IconicsDrawable(this, GoogleMaterial.Icon.gmd_sort).color(Color.WHITE).actionBar());
}
return true;
}
use of android.view.MenuInflater in project MaterialDrawer by mikepenz.
the class AdvancedActivity method onCreateOptionsMenu.
@Override
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.main, menu);
return true;
}
use of android.view.MenuInflater in project MaterialDrawer by mikepenz.
the class DrawerBuilder method inflateMenu.
/**
* Inflates the DrawerItems from a menu.xml
*
* @param menuRes
* @return
*/
public DrawerBuilder inflateMenu(@MenuRes int menuRes) {
MenuInflater menuInflater = new SupportMenuInflater(mActivity);
MenuBuilder mMenu = new MenuBuilder(mActivity);
menuInflater.inflate(menuRes, mMenu);
addMenuItems(mMenu, false);
return this;
}
use of android.view.MenuInflater in project standup-timer by jwood.
the class MeetingDetails method onCreateOptionsMenu.
@Override
public boolean onCreateOptionsMenu(Menu menu) {
super.onCreateOptionsMenu(menu);
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.meeting_details_options_menu, menu);
return true;
}
Aggregations