super(context); mParentMenu = parentMenu; mItem = item;
return mParentMenu.collapseItemActionView(item);
return super.dispatchMenuItemSelected(menu, item) || mParentMenu.dispatchMenuItemSelected(menu, item);
return mParentMenu.expandItemActionView(item);
final int itemId = mItem != null ? mItem.getItemId() : 0; if (itemId == 0) { return null; } return super.getActionViewStatesKey() + ":" + itemId;
return mItem;
return mParentMenu;
return mParentMenu.isQwertyMode();
return mParentMenu.isShortcutsVisible();
mParentMenu.setCallback(callback);
return (SubMenu) super.setHeaderIconInt(icon);
return (SubMenu) super.setHeaderIconInt(iconRes);
return (SubMenu) super.setHeaderTitleInt(title);
return (SubMenu) super.setHeaderTitleInt(titleRes);
return (SubMenu) super.setHeaderViewInt(view);
mItem.setIcon(icon); return this;
mItem.setIcon(iconRes); return this;
mParentMenu.setQwertyMode(isQwerty);
mParentMenu.setShortcutsVisible(shortcutsVisible);