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);
super.setHeaderIconInt(icon); return this;
super.setHeaderIconInt(ContextCompat.getDrawable(getContext(), iconRes)); return this;
super.setHeaderTitleInt(title); return this;
super.setHeaderTitleInt(getContext().getResources().getString(titleRes)); return this;
super.setHeaderViewInt(view); return this;
mItem.setIcon(icon); return this;
mItem.setIcon(iconRes); return this;
mParentMenu.setQwertyMode(isQwerty);
mParentMenu.setShortcutsVisible(shortcutsVisible);