List of usage examples for android.view MenuInflater inflate
public void inflate(@MenuRes int menuRes, Menu menu)
From source file:br.com.GUI.perfil.PerfilAluno.java
@Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { inflater.inflate(R.menu.perfil_aluno, menu); }
From source file:com.pentacog.mctracker.MCServerTrackerActivity.java
/** * @see android.app.Activity#onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) *//*from ww w. ja v a2 s .c o m*/ @Override public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) { super.onCreateContextMenu(menu, v, menuInfo); MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.server_context, menu); final AdapterContextMenuInfo info = (AdapterContextMenuInfo) menuInfo; Server server = serverList.getItem(info.position); if (!server.favorite) { menu.add(Menu.NONE, 124, Menu.NONE, R.string.favorites_add); } else { menu.add(Menu.NONE, 124, Menu.NONE, R.string.favorites_remove); } }
From source file:net.kourlas.voipms_sms.activities.ConversationsActivity.java
@Override public boolean onCreateActionMode(ActionMode mode, Menu menu) { MenuInflater inflater = mode.getMenuInflater(); inflater.inflate(R.menu.conversations_secondary, menu); return true;/*w w w . j a va2 s . c om*/ }
From source file:li.barter.fragments.EditProfileFragment.java
@Override public void onCreateOptionsMenu(final Menu menu, final MenuInflater inflater) { inflater.inflate(R.menu.menu_profile_edit, menu); }
From source file:com.echlabsw.android.drawertab.MainActivity.java
@Override public boolean onCreateOptionsMenu(Menu menu) { mOptionsMenu = menu;/* w w w. jav a2 s.co m*/ MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.main_menu, menu); return true; }
From source file:app.CT.BTCCalculator.fragments.BreakevenFragment.java
@Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { super.onCreateOptionsMenu(menu, inflater); inflater.inflate(R.menu.menu, menu); this.menu = menu; updateMenuTitles();/*from w w w . j a v a 2 s. c o m*/ enableMenuItems(); }
From source file:com.sakisds.icymonitor.fragments.graph.GraphContainerFragment.java
@Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { super.onCreateOptionsMenu(menu, inflater); inflater.inflate(R.menu.menu_graphs, menu); mKeepOnItem = menu.findItem(R.id.item_keep_screen_on); mPauseItem = menu.findItem(R.id.item_resume_pause); refreshSettings();//from w w w. j a v a 2s. c om }
From source file:com.akop.bach.fragment.playstation.GamesFragment.java
@Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { super.onCreateOptionsMenu(menu, inflater); inflater.inflate(R.menu.psn_game_list, menu); }
From source file:com.mikecorrigan.trainscorekeeper.MainActivity.java
@Override public boolean onCreateOptionsMenu(Menu menu) { Log.vc(VERBOSE, TAG, "onCreateOptionsMenu: menu=" + menu); final MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.menu, menu); return true;//w w w . j a va 2 s . c o m }
From source file:com.openerp.addons.note.EditNoteFragment.java
@Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { inflater.inflate(R.menu.menu_fragment_note_detail, menu); // disabling the MORE [:] menu MenuItem item_operation = menu.findItem(R.id.menu_note_operation); item_operation.setVisible(false);/* w w w .j ava2 s .co m*/ }