Home | History | Annotate | Download | only in deskclock

Lines Matching refs:Menu

36 import android.view.Menu;
79 private Menu mMenu;
240 public boolean onCreateOptionsMenu(Menu menu) {
241 // We only want to show it as a menu in landscape, and only for clock/alarm fragment.
242 mMenu = menu;
246 // Clear the menu so that it doesn't get duplicate items in case onCreateOptionsMenu
248 menu.clear();
249 getMenuInflater().inflate(R.menu.desk_clock_menu, menu);
251 // Always return true for landscape, regardless of whether we've inflated the menu, so
252 // that when we switch tabs this method will get called and we can inflate the menu.
259 public boolean onPrepareOptionsMenu(Menu menu) {
260 updateMenu(menu);
264 private void updateMenu(Menu menu) {
266 MenuItem help = menu.findItem(R.id.menu_item_help);
272 MenuItem nightMode = menu.findItem(R.id.menu_item_night_mode);
410 // Set the page before doing the menu so that onCreateOptionsMenu knows what page it is.
414 // Only show the overflow menu for alarm and world clock.
416 // Make sure the menu's been initialized.