View function ( MenuItemImpl arg0 , View arg1 , ViewGroup arg2 ) { MenuView . ItemView loc0 ; if ( arg1 instanceof MenuView . ItemView ) { loc0 = ( MenuView . ItemView ) arg1 ; } else { loc0 = createItemView ( arg2 ) ; } bindItemView ( arg0 , loc0 ) ; return ( View ) loc0 ; }
prepare an item view for use . see adapterview for the basic idea at work here . this may require creating a new item view , but well-behaved implementations will re-use the view passed as convertview if present . the returned view will be populated with data from the item parameter . concode_field_sep MenuView mMenuView concode_elem_sep int mMenuLayoutRes concode_elem_sep Context mSystemContext concode_elem_sep MenuBuilder mMenu concode_elem_sep LayoutInflater mSystemInflater concode_elem_sep int mItemLayoutRes concode_elem_sep int mId concode_elem_sep Callback mCallback concode_elem_sep boolean IS_HONEYCOMB concode_elem_sep LayoutInflater mInflater concode_elem_sep Context mContext concode_field_sep MenuView getMenuView concode_elem_sep void initForMenu concode_elem_sep void addItemView concode_elem_sep boolean onSubMenuSelected concode_elem_sep void setCallback concode_elem_sep int getId concode_elem_sep boolean flagActionItems concode_elem_sep void updateMenuView concode_elem_sep boolean shouldIncludeItem concode_elem_sep boolean collapseItemActionView concode_elem_sep void bindItemView concode_elem_sep MenuView.ItemView createItemView concode_elem_sep void setId concode_elem_sep boolean filterLeftoverView concode_elem_sep boolean expandItemActionView concode_elem_sep void onCloseMenu