Lines Matching refs:group
386 private MenuItem addInternal(int group, int id, int categoryOrder, CharSequence title) {
389 final MenuItemImpl item = new MenuItemImpl(this, group, id, categoryOrder,
411 public MenuItem add(int group, int id, int categoryOrder, CharSequence title) {
412 return addInternal(group, id, categoryOrder, title);
415 public MenuItem add(int group, int id, int categoryOrder, int title) {
416 return addInternal(group, id, categoryOrder, mResources.getString(title));
427 public SubMenu addSubMenu(int group, int id, int categoryOrder, CharSequence title) {
428 final MenuItemImpl item = (MenuItemImpl) addInternal(group, id, categoryOrder, title);
435 public SubMenu addSubMenu(int group, int id, int categoryOrder, int title) {
436 return addSubMenu(group, id, categoryOrder, mResources.getString(title));
439 public int addIntentOptions(int group, int id, int categoryOrder, ComponentName caller,
447 removeGroup(group);
457 final MenuItem item = add(group, id, categoryOrder, ri.loadLabel(pm))
472 public void removeGroup(int group) {
473 final int i = findGroupIndex(group);
478 while ((numRemoved++ < maxRemovable) && (mItems.get(i).getGroupId() == group)) {
529 final int group = item.getGroupId();
534 if (curItem.getGroupId() == group) {
538 // Check the item meant to be checked, uncheck the others (that are in the group)
544 public void setGroupCheckable(int group, boolean checkable, boolean exclusive) {
549 if (item.getGroupId() == group) {
556 public void setGroupVisible(int group, boolean visible) {
565 if (item.getGroupId() == group) {
573 public void setGroupEnabled(int group, boolean enabled) {
578 if (item.getGroupId() == group) {
628 public int findGroupIndex(int group) {
629 return findGroupIndex(group, 0);
632 public int findGroupIndex(int group, int start) {
642 if (item.getGroupId() == group) {
1019 * menu button itself. This is a soft limit; if an item shares a group ID with an item
1020 * previously included as an action item, the new item will stay with its group and become
1028 * items may be added. If an item that is part of a group cannot fit within the remaining
1029 * measured width, the entire group will be demoted to overflow. This is done to ensure room
1032 * <p>The space freed by demoting a full group cannot be consumed by future menu items.