/// <summary> /// Creates the item view for the 'More' button which is used to switch to /// the expanded menu view. /// </summary> /// <remarks> /// Creates the item view for the 'More' button which is used to switch to /// the expanded menu view. This button is a special case since it does not /// have a MenuItemData backing it. /// </remarks> /// <returns>The IconMenuItemView for the 'More' button</returns> internal [email protected] createMoreItemView() { android.content.Context context = getContext(); android.view.LayoutInflater inflater = android.view.LayoutInflater.from(context); [email protected] itemView = ([email protected] )inflater.inflate([email protected]_menu_item_layout, null); android.content.res.Resources r = context.getResources(); itemView.initialize(r.getText([email protected][email protected]_item_label), mMoreIcon ); itemView.setOnClickListener(new _OnClickListener_303(this)); return(itemView); }
public override void bindItemView([email protected] item, [email protected] itemView) { [email protected] view = ([email protected] )itemView; view.setItemData(item); view.initialize(item.getTitleForItemView(view), item.getIcon()); view.setVisibility(item.isVisible() ? android.view.View.VISIBLE : android.view.View .GONE); view.setEnabled(view.isEnabled()); view.setLayoutParams(view.getTextAppropriateLayoutParams()); }