예제 #1
0
 public SimpleMenuItem(SimpleMenu menu, int id, int order, CharSequence title)
 {
     mMenu = menu;
     mId = id;
     mOrder = order;
     mTitle = title;
 }
예제 #2
0
 /**{@inheritDoc}*/
 protected override void onTitleChanged(CharSequence title, int color)
 {
     mActionBarHelper.onTitleChanged(title, color);
     base.OnTitleChanged(title, color);
 }
예제 #3
0
 public ISubMenu addSubMenu(int groupId, int itemId, int order, CharSequence title)
 {
     throw new NotImplementedException("This operation is not supported for SimpleMenu");
 }
예제 #4
0
 // Unsupported operations.
 public ISubMenu addSubMenu(CharSequence charSequence)
 {
     throw new NotImplementedException ("This operation is not supported for SimpleMenu");
 }
예제 #5
0
 public IMenuItem add(int groupId, int itemId, int order, CharSequence title)
 {
     return addInternal(itemId, order, title);
 }
예제 #6
0
 public IMenuItem add(CharSequence title)
 {
     return addInternal(0, 0, title);
 }
예제 #7
0
 /**
  * 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;
 }
예제 #8
0
 public IMenuItem setTitleCondensed(CharSequence title)
 {
     mTitleCondensed = title;
     return this;
 }
예제 #9
0
 public IMenuItem setTitle(CharSequence title)
 {
     mTitle = title;
     return this;
 }