List of usage examples for android.view MenuInflater inflate
public void inflate(@MenuRes int menuRes, Menu menu)
From source file:com.dwdesign.tweetings.fragment.SearchTweetsFragment.java
@Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { menu.clear();/*from w w w . j av a2 s . c o m*/ inflater.inflate(R.menu.menu_searchtweets, menu); super.onCreateOptionsMenu(menu, inflater); }
From source file:com.hedgehog.smdb.ActionBarControlScrollViewActivity.java
@Override public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.info, menu); return super.onCreateOptionsMenu(menu); }
From source file:com.QuarkLabs.BTCeClient.fragments.OrdersBookFragment.java
@Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { inflater.inflate(R.menu.actions_menu_ordersbook, menu); }
From source file:com.meetingninja.csse.user.ProfileFragment.java
@Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { inflater.inflate(this.menu, menu); }
From source file:com.QuarkLabs.BTCeClient.fragments.HistoryFragment.java
@Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { inflater.inflate(R.menu.actions_refresh_filter, menu); super.onCreateOptionsMenu(menu, inflater); }
From source file:br.com.moviecreator.views.home.HomeFragment.java
@Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { inflater.inflate(R.menu.home, menu); initSearch(menu.findItem(R.id.action_search)); }
From source file:com.sat.sonata.MenuActivity.java
@Override public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.stopwatch, menu); return true;//from w w w . jav a 2 s.c o m }
From source file:com.android.emergency.view.ViewInfoActivity.java
@Override public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.view_info_menu, menu); mMenu = menu;/* www . j a va 2 s. com*/ return super.onCreateOptionsMenu(menu); }
From source file:ca.etsmtl.applets.etsmobile.NewsListActivity.java
@Override public boolean onCreateOptionsMenu(final Menu menu) { final MenuInflater inflater = getMenuInflater(); inflater.inflate(R.layout.news_list_menu, menu); return true;/*w w w . ja v a2 s . c om*/ }
From source file:com.example.office.ui.calendar.EventFragment.java
@Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { inflater.inflate(R.menu.event_options, menu); // This will be called as soon as user presses the attach menu item to attach image to current event menu.findItem(R.id.action_attach).setOnMenuItemClickListener(new OnMenuItemClickListener() { public boolean onMenuItemClick(MenuItem item) { switch (item.getItemId()) { case R.id.action_attach: mImagePicker.showAttachImageDialog(); return true; default: return false; }/*from ww w. ja v a 2 s.c o m*/ } }); super.onCreateOptionsMenu(menu, inflater); }