/** * Set an action view for this menu item. An action view will be displayed in place of an * automatically generated menu item element in the UI when this item is shown as an action within * a parent. * * @param resId Layout resource to use for presenting this item to the user. * @return This Item so additional setters can be called. * @see #setActionView(View) */ public MenuItem setActionView(int resId) { if (mMenuItem != null) { HoneycombMenuItem.setActionView(mMenuItem, resId); } return this; }
/** * Set an action view for this menu item. An action view will be displayed in place of an * automatically generated menu item element in the UI when this item is shown as an action within * a parent. * * @param view View to use for presenting this item to the user. * @return This Item so additional setters can be called. * @see #setActionView(int) */ public MenuItem setActionView(View view) { if (mMenuItem != null) { HoneycombMenuItem.setActionView(mMenuItem, view); } return this; }