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