public SubMenu addSubMenuItem() {
   itemAdded = true;
   SubMenu subMenu = menu.addSubMenu(groupId, itemId, itemCategoryOrder, itemTitle);
   setItem(subMenu.getItem());
   return subMenu;
 }
Esempio n. 2
0
 @Override
 public boolean onCreateOptionsMenu(Menu menu) {
   menu.addSubMenu(0, 3001, 3001, "Flush");
   return super.onCreateOptionsMenu(menu);
 }