Example #1
0
        protected internal override string getActionViewStatesKey()
        {
            int itemId = mItem != null?mItem.getItemId() : 0;

            if (itemId == 0)
            {
                return(null);
            }
            return(base.getActionViewStatesKey() + ":" + itemId);
        }
Example #2
0
 public virtual void initialize([email protected] itemData,
                                int menuType)
 {
     mItemData = itemData;
     setIcon(itemData.getIcon());
     setTitle(itemData.getTitleForItemView(this));
     // Title only takes effect if there is no icon
     setId(itemData.getItemId());
     setVisibility(itemData.isVisible() ? android.view.View.VISIBLE : android.view.View
                   .GONE);
     setEnabled(itemData.isEnabled());
 }