Home
last modified time | relevance | path

Searched refs:menu (Results 1 – 25 of 93) sorted by relevance

1234

/development/samples/MySampleRss/src/com/example/codelab/rssexample/
DMyRssReader.java60 public boolean onCreateOptionsMenu(Menu menu){ in onCreateOptionsMenu() argument
63 super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
65 menu.add(0, 0, "Start RSS Service", null); in onCreateOptionsMenu()
66 menu.add(0, 1, "Stop RSS Service", null); in onCreateOptionsMenu()
67 menu.add(0, 2, "Add New Feed", null); in onCreateOptionsMenu()
68 menu.add(0, 3, "Delete Feed", null); in onCreateOptionsMenu()
69 menu.add(0, 4, "Update All Feeds", null); in onCreateOptionsMenu()
76 public boolean onPrepareOptionsMenu(Menu menu){ in onPrepareOptionsMenu() argument
DMyRssReader2.java94 public boolean onCreateOptionsMenu(Menu menu){ in onCreateOptionsMenu() argument
97 super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
99 menu.add(0, 0, "Start RSS Service", null); in onCreateOptionsMenu()
100 menu.add(0, 1, "Stop RSS Service", null); in onCreateOptionsMenu()
101 menu.add(0, 2, "Add New Feed", null); in onCreateOptionsMenu()
102 menu.add(0, 3, "Delete Feed", null); in onCreateOptionsMenu()
103 menu.add(0, 4, "Update All Feeds", null); in onCreateOptionsMenu()
110 public boolean onPrepareOptionsMenu(Menu menu){ in onPrepareOptionsMenu() argument
DMyRssReader3.java76 public boolean onCreateOptionsMenu(Menu menu) in onCreateOptionsMenu() argument
80 super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
82 menu.add(0, 0, R.string.menu_option_start, null); in onCreateOptionsMenu()
83 menu.add(0, 1, R.string.menu_option_stop, null); in onCreateOptionsMenu()
84 menu.add(0, 2, R.string.menu_option_add, null); in onCreateOptionsMenu()
85 menu.add(0, 3, R.string.menu_option_delete, null); in onCreateOptionsMenu()
86 menu.add(0, 4, R.string.menu_option_update, null); in onCreateOptionsMenu()
93 public boolean onPrepareOptionsMenu(Menu menu){ in onPrepareOptionsMenu() argument
DMyRssReader4.java87 public boolean onCreateOptionsMenu(Menu menu){ in onCreateOptionsMenu() argument
90 super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
92 menu.add(0, 0, R.string.menu_option_start, null); in onCreateOptionsMenu()
93 menu.add(0, 1, R.string.menu_option_stop, null); in onCreateOptionsMenu()
94 menu.add(0, 2, R.string.menu_option_add, null); in onCreateOptionsMenu()
95 menu.add(0, 3, R.string.menu_option_delete, null); in onCreateOptionsMenu()
96 menu.add(0, 4, R.string.menu_option_update, null); in onCreateOptionsMenu()
103 public boolean onPrepareOptionsMenu(Menu menu){ in onPrepareOptionsMenu() argument
/development/samples/ApiDemos/src/com/example/android/apis/view/
DLinearLayout8.java58 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
59 super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
60 menu.add(0, VERTICAL_ID, 0, R.string.linear_layout_8_vertical); in onCreateOptionsMenu()
61 menu.add(0, HORIZONTAL_ID, 0, R.string.linear_layout_8_horizontal); in onCreateOptionsMenu()
62 menu.add(0, TOP_ID, 0, R.string.linear_layout_8_top); in onCreateOptionsMenu()
63 menu.add(0, MIDDLE_ID, 0, R.string.linear_layout_8_middle); in onCreateOptionsMenu()
64 menu.add(0, BOTTOM_ID, 0, R.string.linear_layout_8_bottom); in onCreateOptionsMenu()
65 menu.add(0, LEFT_ID, 0, R.string.linear_layout_8_left); in onCreateOptionsMenu()
66 menu.add(0, CENTER_ID, 0, R.string.linear_layout_8_center); in onCreateOptionsMenu()
67 menu.add(0, RIGHT_ID, 0, R.string.linear_layout_8_right); in onCreateOptionsMenu()
DSearchViewActionBar.java58 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
59 super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
62 inflater.inflate(R.menu.searchview_in_menu, menu); in onCreateOptionsMenu()
63 MenuItem searchItem = menu.findItem(R.id.action_search); in onCreateOptionsMenu()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DActionBarUsage.java49 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
51 inflater.inflate(R.menu.actions, menu); in onCreateOptionsMenu()
52 SearchView searchView = (SearchView) menu.findItem(R.id.action_search).getActionView(); in onCreateOptionsMenu()
58 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
60 Drawable icon = menu.findItem(mSortMode).getIcon(); in onPrepareOptionsMenu()
61 menu.findItem(R.id.action_sort).setIcon(icon); in onPrepareOptionsMenu()
63 return super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
DMenuInflateFromXml.java45 R.menu.title_only, R.menu.title_icon, R.menu.submenu, R.menu.groups,
46 R.menu.checkable, R.menu.shortcuts, R.menu.order, R.menu.category_order,
47 R.menu.visible, R.menu.disabled
124 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
126 mMenu = menu; in onCreateOptionsMenu()
130 inflater.inflate(sMenuExampleResources[mSpinner.getSelectedItemPosition()], menu); in onCreateOptionsMenu()
DSearchInvoke.java109 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
110 super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
114 menu.removeItem(0); in onPrepareOptionsMenu()
115 menu.removeItem(1); in onPrepareOptionsMenu()
121 item = menu.add( 0, 0, 0, "(Search Key)"); in onPrepareOptionsMenu()
125 item = menu.add( 0, 0, 0, "Search"); in onPrepareOptionsMenu()
130 item = menu.add( 0, 0, 0, "(Type-To-Search)"); in onPrepareOptionsMenu()
134 item = menu.add( 0, 0, 0, "(Disabled)"); in onPrepareOptionsMenu()
138 item = menu.add(0, 1, 0, "Clear History"); in onPrepareOptionsMenu()
DActionBarShareActionProviderActivity.java52 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
54 getMenuInflater().inflate(R.menu.action_bar_share_action_provider, menu); in onCreateOptionsMenu()
57 MenuItem actionItem = menu.findItem(R.id.menu_item_share_action_provider_action_bar); in onCreateOptionsMenu()
65 MenuItem overflowItem = menu.findItem(R.id.menu_item_share_action_provider_overflow); in onCreateOptionsMenu()
DActionBarMechanics.java46 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
51 menu.add("Normal item"); in onCreateOptionsMenu()
53 MenuItem actionItem = menu.add("Action Button"); in onCreateOptionsMenu()
DActionBarSettingsActionProviderActivity.java45 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
46 super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
47 getMenuInflater().inflate(R.menu.action_bar_settings_action_provider, menu); in onCreateOptionsMenu()
DFragmentMenu.java110 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { in onCreateOptionsMenu() argument
111 menu.add("Menu 1a").setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM); in onCreateOptionsMenu()
112 menu.add("Menu 1b").setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM); in onCreateOptionsMenu()
128 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { in onCreateOptionsMenu() argument
129 menu.add("Menu 2").setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM); in onCreateOptionsMenu()
/development/samples/LunarLander/src/com/example/android/lunarlander/
DLunarLander.java65 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
66 super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
68 menu.add(0, MENU_START, 0, R.string.menu_start); in onCreateOptionsMenu()
69 menu.add(0, MENU_STOP, 0, R.string.menu_stop); in onCreateOptionsMenu()
70 menu.add(0, MENU_PAUSE, 0, R.string.menu_pause); in onCreateOptionsMenu()
71 menu.add(0, MENU_RESUME, 0, R.string.menu_resume); in onCreateOptionsMenu()
72 menu.add(0, MENU_EASY, 0, R.string.menu_easy); in onCreateOptionsMenu()
73 menu.add(0, MENU_MEDIUM, 0, R.string.menu_medium); in onCreateOptionsMenu()
74 menu.add(0, MENU_HARD, 0, R.string.menu_hard); in onCreateOptionsMenu()
/development/samples/SkeletonApp/src/com/example/android/skeletonapp/
DSkeletonActivity.java75 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
76 super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
81 menu.add(0, BACK_ID, 0, R.string.back).setShortcut('0', 'b'); in onCreateOptionsMenu()
82 menu.add(0, CLEAR_ID, 0, R.string.clear).setShortcut('1', 'c'); in onCreateOptionsMenu()
91 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
92 super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
96 menu.findItem(CLEAR_ID).setVisible(mEditor.getText().length() > 0); in onPrepareOptionsMenu()
/development/samples/NotePad/src/com/example/android/notepad/
DNotesList.java154 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
157 inflater.inflate(R.menu.list_options_menu, menu); in onCreateOptionsMenu()
165 menu.addIntentOptions(Menu.CATEGORY_ALTERNATIVE, 0, 0, in onCreateOptionsMenu()
168 return super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
172 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
173 super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
180 MenuItem mPasteItem = menu.findItem(R.id.menu_paste); in onPrepareOptionsMenu()
225 menu.addIntentOptions( in onPrepareOptionsMenu()
244 menu.removeGroup(Menu.CATEGORY_ALTERNATIVE); in onPrepareOptionsMenu()
301 public void onCreateContextMenu(ContextMenu menu, View view, ContextMenuInfo menuInfo) { in onCreateContextMenu() argument
[all …]
/development/apps/FontLab/src/com/android/fontlab/
DFontLab.java176 private void addFontMenu(Menu menu, int index) { in addFontMenu() argument
177 MenuItem item = menu.add(0, index, 0, sTypefaceName[index]); in addFontMenu()
191 private void addStyleMenu(Menu menu, int style, char shortCut) { in addStyleMenu() argument
192 MenuItem item = menu.add(0, style, 0, (style == Typeface.BOLD) ? "Bold" : "Italic"); in addStyleMenu()
214 void addFlagMenu(Menu menu, int paintFlag, String label, char shortCut) { in addFlagMenu() argument
215 MenuItem item = menu.add(0, paintFlag, 0, label); in addFlagMenu()
233 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
234 super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
238 @Override public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
239 super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
[all …]
/development/samples/training/AnimationsDemo/src/com/example/android/animationsdemo/
DScreenSlideActivity.java81 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
82 super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
83 getMenuInflater().inflate(R.menu.activity_screen_slide, menu); in onCreateOptionsMenu()
85 menu.findItem(R.id.action_previous).setEnabled(mPager.getCurrentItem() > 0); in onCreateOptionsMenu()
89 MenuItem item = menu.add(Menu.NONE, R.id.action_next, Menu.NONE, in onCreateOptionsMenu()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DFingerPaint.java147 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
148 super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
150 menu.add(0, COLOR_MENU_ID, 0, "Color").setShortcut('3', 'c'); in onCreateOptionsMenu()
151 menu.add(0, EMBOSS_MENU_ID, 0, "Emboss").setShortcut('4', 's'); in onCreateOptionsMenu()
152 menu.add(0, BLUR_MENU_ID, 0, "Blur").setShortcut('5', 'z'); in onCreateOptionsMenu()
153 menu.add(0, ERASE_MENU_ID, 0, "Erase").setShortcut('5', 'z'); in onCreateOptionsMenu()
154 menu.add(0, SRCATOP_MENU_ID, 0, "SrcATop").setShortcut('5', 'z'); in onCreateOptionsMenu()
168 public boolean onPrepareOptionsMenu(Menu menu) { in onPrepareOptionsMenu() argument
169 super.onPrepareOptionsMenu(menu); in onPrepareOptionsMenu()
/development/tutorials/NotepadCodeLab/Notepadv2/src/com/android/demo/notepad2/
DNotepadv2.java69 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
70 super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
71 menu.add(0, INSERT_ID,0, R.string.menu_insert); in onCreateOptionsMenu()
87 public void onCreateContextMenu(ContextMenu menu, View v, in onCreateContextMenu() argument
89 super.onCreateContextMenu(menu, v, menuInfo); in onCreateContextMenu()
/development/tutorials/NotepadCodeLab/Notepadv3Solution/src/com/android/demo/notepad3/
DNotepadv3.java69 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
70 super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
71 menu.add(0, INSERT_ID, 0, R.string.menu_insert); in onCreateOptionsMenu()
87 public void onCreateContextMenu(ContextMenu menu, View v, in onCreateContextMenu() argument
89 super.onCreateContextMenu(menu, v, menuInfo); in onCreateContextMenu()
90 menu.add(0, DELETE_ID, 0, R.string.menu_delete); in onCreateContextMenu()
/development/samples/ActionBarCompat/src/com/example/android/actionbarcompat/
DActionBarActivity.java70 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
72 retValue |= mActionBarHelper.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
73 retValue |= super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
DMainActivity.java47 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
49 menuInflater.inflate(R.menu.main, menu); in onCreateOptionsMenu()
53 return super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
DActionBarHelperHoneycomb.java41 public boolean onCreateOptionsMenu(Menu menu) { in onCreateOptionsMenu() argument
42 mOptionsMenu = menu; in onCreateOptionsMenu()
43 return super.onCreateOptionsMenu(menu); in onCreateOptionsMenu()
/development/samples/Support4Demos/src/com/example/android/supportv4/app/
DFragmentContextMenuSupport.java59 public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) { in onCreateContextMenu() argument
60 super.onCreateContextMenu(menu, v, menuInfo); in onCreateContextMenu()
61 menu.add(Menu.NONE, R.id.a_item, Menu.NONE, "Menu A"); in onCreateContextMenu()
62 menu.add(Menu.NONE, R.id.b_item, Menu.NONE, "Menu B"); in onCreateContextMenu()

1234