public SimpleMenuItem(SimpleMenu menu, int id, int order, CharSequence title) { mMenu = menu; mId = id; mOrder = order; mTitle = title; }
/**{@inheritDoc}*/ protected override void onTitleChanged(CharSequence title, int color) { mActionBarHelper.onTitleChanged(title, color); base.OnTitleChanged(title, color); }
public ISubMenu addSubMenu(int groupId, int itemId, int order, CharSequence title) { throw new NotImplementedException("This operation is not supported for SimpleMenu"); }
// Unsupported operations. public ISubMenu addSubMenu(CharSequence charSequence) { throw new NotImplementedException ("This operation is not supported for SimpleMenu"); }
public IMenuItem add(int groupId, int itemId, int order, CharSequence title) { return addInternal(itemId, order, title); }
public IMenuItem add(CharSequence title) { return addInternal(0, 0, title); }
/** * Adds an item to the menu. The other add methods funnel to this. */ private IMenuItem addInternal(int itemId, int order, CharSequence title) { SimpleMenuItem item = new SimpleMenuItem(this, itemId, order, title); mItems.Add(findInsertIndex(mItems, order), item); return item; }
public IMenuItem setTitleCondensed(CharSequence title) { mTitleCondensed = title; return this; }
public IMenuItem setTitle(CharSequence title) { mTitle = title; return this; }