Lines Matching refs:menu
17 package android.view.menu;
28 * number of menu items. Used @link {@link ListScenario} as a reference.
59 public boolean onCreateOptionsMenu(Menu menu) {
61 mMenu = menu;
67 if ((item = onAddMenuItem(menu, i)) == null) {
71 item = menu.add(0, 0, 0, (givenTitle != null) ? givenTitle : ("Item " + i));
88 public boolean onPrepareOptionsMenu(Menu menu) {
90 mMenu = menu;
96 * Override this to add an item to the menu.
100 * @return The item that was added to the menu, or null if nothing was
103 protected MenuItem onAddMenuItem(Menu menu, int itemPosition) {