List of usage examples for android.view MenuInflater inflate
public void inflate(@MenuRes int menuRes, Menu menu)
From source file:com.cloudkick.DashboardActivity.java
@Override public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.dashboard_menu, menu); return true;/*from ww w . j ava 2 s . co m*/ }
From source file:de.elanev.studip.android.app.frontend.forums.ForumEntryFragment.java
@Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { inflater.inflate(R.menu.forum_entries_menu, menu); super.onCreateOptionsMenu(menu, inflater); }
From source file:ch.berta.fabio.popularmovies.presentation.ui.fragments.MovieDetailsBaseFragment.java
@Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { super.onCreateOptionsMenu(menu, inflater); inflater.inflate(R.menu.menu_movie_details, menu); MenuItem shareItem = menu.findItem(R.id.menu_details_action_share); shareItem.setVisible(mViewModel.hasMovieVideos()); }
From source file:au.id.tedp.mapdroid.Picker.java
@Override public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.options_menu, menu); return true;/*from w w w .j a va2 s. c o m*/ }
From source file:net.alchemiestick.katana.winehqappdb.SearchView.java
@Override public boolean onCreateOptionsMenu(Menu m) { MenuInflater inf = getMenuInflater(); inf.inflate(R.menu.app_menu, m); return true;// ww w .j a v a 2s . c om }
From source file:at.flack.activity.NewSMSContactActivity.java
@Override public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.new_contact, menu); SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE); MenuItem searchMenuItem = menu.findItem(R.id.search); SearchView searchView = (SearchView) MenuItemCompat.getActionView(searchMenuItem); searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName())); searchView.setSubmitButtonEnabled(true); searchView.setOnQueryTextListener(this); return true;/* ww w . jav a 2 s . c o m*/ }
From source file:co.lmejia.iglesia.AssistanceListActivity.java
@Override public boolean onCreateOptionsMenu(Menu menu) { Log.d(TAG, "onCreateOptionsMenu"); MenuInflater inflater = this.getMenuInflater(); inflater.inflate(R.menu.menu_main, menu); return true;//from w w w . j a va2s . com }
From source file:ca.farrelltonsolar.classic.HourLogChart.java
@Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { inflater.inflate(R.menu.hour_log_chart_menu, menu); // inflate the menu MenuItem shareItem = menu.findItem(R.id.hour_log_chart_preference); setupSpinner(shareItem);// w w w . j a v a 2 s . com super.onCreateOptionsMenu(menu, inflater); }
From source file:com.andremion.louvre.home.GalleryFragment.java
@Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { inflater.inflate(R.menu.gallery_menu, menu); }
From source file:codepath.watsiapp.activities.BaseFragmentActivity.java
@Override public boolean onCreateOptionsMenu(Menu menu) { super.onCreateOptionsMenu(menu); MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.common_menus, menu); myprofile = menu.findItem(R.id.action_profileView); logout = menu.findItem(R.id.action_logout); checkLogOutVisible();/* w w w. j av a 2s. com*/ return true; }