List of usage examples for android.view MenuInflater inflate
public void inflate(@MenuRes int menuRes, Menu menu)
From source file:com.springsource.greenhouse.events.EventsActivity.java
@Override public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.events_menu, menu); return true;// w w w .j a v a 2 s . c o m }
From source file:za.co.neilson.alarm.BaseActivity.java
@Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu items for use in the action bar MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.menu, menu); return super.onCreateOptionsMenu(menu); }
From source file:de.elanev.studip.android.app.frontend.forums.ForumEntryComposeFragment.java
@Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { inflater.inflate(R.menu.forum_entry_compose_menu, menu); super.onCreateOptionsMenu(menu, inflater); }
From source file:app.presentation.sections.user_demo.list.UsersFragment.java
@Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { inflater.inflate(R.menu.menu_filter, menu); super.onCreateOptionsMenu(menu, inflater); }
From source file:com.adkdevelopment.earthquakesurvival.ui.report_earthquake.ReportFragment.java
@Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { super.onCreateOptionsMenu(menu, inflater); inflater.inflate(R.menu.menu_report, menu); }
From source file:com.agenmate.lollipop.addedit.AddEditActivity.java
@Override public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.add_edit_actions, menu); this.menu = menu; alarmIcon = menu.findItem(R.id.action_alarm); alarmIcon.setVisible(false);/* w ww.j av a 2 s . c o m*/ if (taskId == null) menu.findItem(R.id.action_delete).setVisible(false); addEditFragment.onOptionsCreated(); return super.onCreateOptionsMenu(menu); }
From source file:co.uk.alt236.restclient4android.activities.ActivityMain.java
public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.menu_main, menu); return true;//from w w w .ja va2 s .c om }
From source file:co.uk.alt236.restclient4android.fragments.FragmentHeaders.java
@Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { inflater.inflate(R.menu.menu_fragment_headers, menu); super.onCreateOptionsMenu(menu, inflater); }
From source file:com.barryku.android.boxnet.BrowseActivity.java
@Override public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.browse_option_menu, menu); return true;//from w ww . ja va2 s .c o m }
From source file:net.dahanne.android.regalandroid.activity.Start.java
@Override public boolean onCreateOptionsMenu(Menu menu) { super.onCreateOptionsMenu(menu); MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.menu, menu); return true;// w w w . j a v a 2 s.c o m }