List of usage examples for android.view Menu clear
public void clear();
From source file:net.lacolaco.smileessence.activity.EditExtractionActivity.java
@Override public boolean onCreateActionMode(ActionMode mode, Menu menu) { menu.clear(); MenuInflater inflater = mode.getMenuInflater(); inflater.inflate(R.menu.edit_list, menu); return true;//from w w w.j av a2 s . c o m }
From source file:org.alfresco.mobile.android.application.fragments.actions.AbstractActions.java
private void getMenu(Menu menu) { menu.clear(); getMenu(getActivity(), menu); }
From source file:com.techm.telestra.assignment.feed.FeedFragment.java
@Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { menu.clear(); inflater.inflate(R.menu.menu_feed, menu); }
From source file:at.fjp.rightrack.SlidingTabs.SlidingTabsTodoFragment.java
@Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { menu.clear(); super.onCreateOptionsMenu(menu, inflater); inflater.inflate(R.menu.main, menu); }
From source file:com.fastbootmobile.encore.app.fragments.SettingsProvidersFragment.java
@Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { super.onCreateOptionsMenu(menu, inflater); menu.clear(); inflater.inflate(R.menu.provider_settings, menu); }
From source file:com.bubblegum.traceratops.app.ui.fragments.LoggerFragment.java
@Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { super.onCreateOptionsMenu(menu, inflater); menu.clear(); inflater.inflate(R.menu.menu_log, menu); }
From source file:org.chromium.chrome.browser.preferences.website.UsbChooserPreferences.java
@Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { menu.clear(); inflater.inflate(R.menu.website_preferences_menu, menu); MenuItem searchItem = menu.findItem(R.id.search); mSearchView = (SearchView) MenuItemCompat.getActionView(searchItem); mSearchView.setImeOptions(EditorInfo.IME_FLAG_NO_FULLSCREEN); SearchView.OnQueryTextListener queryTextListener = new SearchView.OnQueryTextListener() { @Override//from w w w . ja va 2 s . c om public boolean onQueryTextSubmit(String query) { return true; } @Override public boolean onQueryTextChange(String query) { // Make search case-insensitive. query = query.toLowerCase(); if (query.equals(mSearch)) return true; mSearch = query; getInfo(); return true; } }; mSearchView.setOnQueryTextListener(queryTextListener); MenuItem help = menu.add(Menu.NONE, R.id.menu_id_targeted_help, Menu.NONE, R.string.menu_help); help.setIcon(R.drawable.ic_help_and_feedback); }
From source file:com.mac.velad.settings.SettingsFragment.java
@Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { menu.clear(); super.onCreateOptionsMenu(menu, inflater); }
From source file:com.activiti.android.app.fragments.task.TaskChecklistFragment.java
@Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { super.onCreateOptionsMenu(menu, inflater); menu.clear(); }
From source file:com.mobandme.ada.examples.devfest.ui.fragments.Fragment.java
@Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { try {/*from w w w. j a v a2 s .c o m*/ super.onCreateOptionsMenu(menu, inflater); menu.clear(); onFragmentCreateOptionsMenu(menu, inflater); } catch (Exception e) { ExceptionsHelper.manage(this, e); } }