/// <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); }
/// <summary>Allows enter key resources to be overridden</summary> /// <param name="res">resources to grab given items from</param> /// <param name="previewId">preview drawable shown on enter key</param> /// <param name="iconId">normal drawable shown on enter key</param> /// <param name="labelId">string shown on enter key</param> internal virtual void setEnterKeyResources(android.content.res.Resources res, int previewId, int iconId, int labelId) { if (mEnterKey != null) { // Reset some of the rarely used attributes. mEnterKey.popupCharacters = null; mEnterKey.popupResId = 0; mEnterKey.text = null; mEnterKey.iconPreview = res.getDrawable(previewId); mEnterKey.icon = res.getDrawable(iconId); mEnterKey.label = res.getText(labelId); // Set the initial size of the preview icon if (mEnterKey.iconPreview != null) { mEnterKey.iconPreview.setBounds(0, 0, mEnterKey.iconPreview.getIntrinsicWidth(), mEnterKey.iconPreview.getIntrinsicHeight()); } } }