Code examples for SubMenu

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
234:	final MenuItem subMenuItem = subMenu.getItem(); 
235:	final MenuItem item1 = subMenu.add(0, 1, 0, "item1"); 
236:	final MenuItem item2 = subMenu.add(0, 2, 0, "item2"); 
Full Snippet Info
6
CodeRank
34:	file.add(0,ITEM_NEW_FILE,0,"н¨"); 
35:	file.add(0,ITEM_OPEN_FILE,0,"´ò¿ª"); 
36:	file.add(0,ITEM_CLOSE,0,"¹Ø±Õ"); 
37:	file.add(0,ITEM_SAVE,0,"±£´æ"); 
38:	file.add(0,ITEM_SAVE_ALL,0,"±£´æÈ«²¿"); 
Full Snippet Info
6
CodeRank
268:	this.subMenu.setHeaderTitle(getTitle()); 
Full Snippet Info
6
CodeRank
148:	sm.add(0, 0, 0, "CM Subitem 1"); 
149:	sm.add(0, 0, 0, "CM Subitem 2"); 
150:	sm.add(0, 0, 0, "CM Subitem 3"); 
Full Snippet Info
6
CodeRank
63:	mapSubMenu.setIcon(android.R.drawable.ic_menu_mapmode); 
-
65:	MenuItem trafficItem = mapSubMenu.add(1, firstItem, firstItem, 
-
69:	MenuItem satelliteItem = mapSubMenu.add(1, firstItem + 1, 
-
72:	MenuItem streetViewItem = mapSubMenu.add(1, firstItem + 2, 
Full Snippet Info
6
CodeRank
116:	settingMenu.add(0, MENU_SETTINGS_CYCLES, 0, "Cycles"); 
117:	settingMenu.add(0, MENU_SETTINGS_FRAMESKIP, 0, "Frameskip"); 
118:	settingMenu.add(0, MENU_SETTINGS_MEMORY_SIZE, 0, "Memory Size"); 
119:	settingMenu.add(0, MENU_SETTINGS_SOAP_VIDEO, 0, "Soap Video") 
-
121:	settingMenu.add(0, MENU_SETTINGS_AUDIO_ENABLED, 0, "Audio Enabled") 
Full Snippet Info
6
CodeRank
36:	subMenuFile.add(COLOR_MENU_GROUP, RED, Menu.NONE, "Red"); 
37:	subMenuFile.add(COLOR_MENU_GROUP, GREEN, Menu.NONE, "Green"); 
38:	subMenuFile.add(COLOR_MENU_GROUP, BLUE, Menu.NONE, "Blue"); 
39:	subMenuFile.setGroupCheckable(COLOR_MENU_GROUP, true, false); 
Full Snippet Info
6
CodeRank
116:	settingMenu.add(0, MENU_SETTINGS_CYCLES, 0, "Cycles"); 
117:	settingMenu.add(0, MENU_SETTINGS_FRAMESKIP, 0, "Frameskip"); 
118:	settingMenu.add(0, MENU_SETTINGS_MEMORY_SIZE, 0, "Memory Size"); 
119:	settingMenu.add(0, MENU_SETTINGS_SOAP_VIDEO, 0, "Soap Video") 
-
121:	settingMenu.add(0, MENU_SETTINGS_AUDIO_ENABLED, 0, "Audio Enabled") 
Full Snippet Info
6
CodeRank
98:	mapSubMenu.setIcon(android.R.drawable.ic_menu_mapmode); 
-
100:	MenuItem trafficItem = mapSubMenu.add(1, firstItem, firstItem, "Traffic"); 
-
103:	MenuItem satelliteItem = mapSubMenu.add(1, firstItem+1, firstItem+1, "Satellite"); 
-
105:	MenuItem streetViewItem = mapSubMenu.add(1, firstItem+2, firstItem+2, "Street View"); 
Full Snippet Info
6
CodeRank
234:	final MenuItem subMenuItem = subMenu.getItem(); 
235:	final MenuItem item1 = subMenu.add(0, 1, 0, "item1"); 
236:	final MenuItem item2 = subMenu.add(0, 2, 0, "item2"); 
Full Snippet Info
5
CodeRank
50:	subMenu4.add(2, Menu.NONE, Menu.NONE, "Opzione 1"); 
51:	subMenu4.add(2, Menu.NONE, Menu.NONE, "Opzione 2"); 
52:	subMenu4.add(2, Menu.NONE, Menu.NONE, "Opzione 3"); 
53:	subMenu4.setGroupCheckable(2, true, true); 
Full Snippet Info
5
CodeRank
139:	order.add(Menu.NONE, 1, 1, "������"); 
140:	order.add(Menu.NONE, 2, 2, "������ʱ��"); 
141:	order.add(Menu.NONE, 3, 3, "��������"); 
142:	order.getItem().setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS); 
Full Snippet Info
5
CodeRank
66:	ca.idi.tecla.lib.menu.SubMenu mSubMenu = new ca.idi.tecla.lib.menu.SubMenu(subMenu); 
-
68:	ca.idi.tecla.lib.menu.MenuItem mItem = addMenuItemToMap(subMenu.getItem()); 
Full Snippet Info
5
CodeRank
157:	subMenu.add(base, base+2, base+2, "sub item1"); 
158:	subMenu.add(base, base+3, base+3, "sub item2"); 
159:	subMenu.add(base, base+4, base+4, "sub item3"); 
Full Snippet Info
5
CodeRank
26:	file.add(0,Item1,0,"н¨"); 
27:	file.add(0,Item2,0,"±£´æ"); 
Full Snippet Info
5
CodeRank
57:	subMenu.add(1, 1, 0, "Green").setChecked(true); 
58:	subMenu.add(1, 2, 0, "Red"); 
59:	subMenu.add(1, 3, 0, "Blue"); 
60:	subMenu.add(1, 4, 0, "Yellow"); 
61:	subMenu.add(1, 5, 0, "Grey"); 
62:	subMenu.add(1, 6, 0, "Pink"); 
63:	subMenu.add(1, 7, 0, "Black"); 
64:	subMenu.add(1, 8, 0, "White"); 
65:	subMenu.setGroupCheckable(1, true, true); 
Full Snippet Info
5
CodeRank
38:	item6.setIcon(android.R.drawable.ic_menu_more); 
39:	item6.add(0, 10, 0, "subitem1"); 
40:	item6.add(0, 20, 0, "subitem2"); 
Full Snippet Info
5
CodeRank
51:	subMenu.add(1, 1, 0, "Green").setChecked(true); 
52:	subMenu.add(1, 2, 0, "Red"); 
53:	subMenu.add(1, 3, 0, "Blue"); 
54:	subMenu.add(1, 4, 0, "Yellow"); 
55:	subMenu.add(1, 5, 0, "Grey"); 
56:	subMenu.add(1, 6, 0, "Pink"); 
57:	subMenu.add(1, 7, 0, "Black"); 
58:	subMenu.add(1, 8, 0, "White"); 
59:	subMenu.setGroupCheckable(1, true, true); 
Full Snippet Info
5
CodeRank
34:	subMenuFile.add(Menu.NONE, NEW, Menu.NONE, "New"); 
35:	subMenuFile.add(Menu.NONE, OPEN, Menu.NONE, "Open"); 
36:	subMenuFile.add(Menu.NONE, SAVE, Menu.NONE, "Save"); 
Full Snippet Info
5
CodeRank
54:	item6.setIcon(android.R.drawable.ic_menu_more); 
55:	item6.add(0,10,0,"subitem1"); 
56:	item6.add(0,20,0,"subitem2"); 
Full Snippet Info
5
CodeRank