示例#1
0
 public OverflowPopup(ActionMenuPresenter _enclosing, android.content.Context context
                      , [email protected] menu, android.view.View anchorView, bool
                      overflowOnly) : base(context, menu, anchorView, overflowOnly)
 {
     this._enclosing = _enclosing;
     this.setCallback(this._enclosing.mPopupPresenterCallback);
 }
示例#2
0
            public ActionButtonSubmenu(ActionMenuPresenter _enclosing, android.content.Context
                                       context, [email protected] subMenu) : base(context, subMenu
                                                                                                           )
            {
                this._enclosing = _enclosing;
                this.mSubMenu   = subMenu;
                [email protected] item = ([email protected]
                                                                 )subMenu.getItem();
                if (!item.isActionButton())
                {
                    // Give a reasonable anchor to nested submenus.
                    this.setAnchorView(this._enclosing.mOverflowButton == null ? (android.view.View) this
                                       ._enclosing.mMenuView : this._enclosing.mOverflowButton);
                }
                this.setCallback(this._enclosing.mPopupPresenterCallback);
                bool preserveIconSpacing = false;
                int  count = subMenu.size();

                {
                    for (int i = 0; i < count; i++)
                    {
                        android.view.MenuItem childItem = subMenu.getItem(i);
                        if (childItem.isVisible() && childItem.getIcon() != null)
                        {
                            preserveIconSpacing = true;
                            break;
                        }
                    }
                }
                this.setForceShowIcon(preserveIconSpacing);
            }
示例#3
0
 public OverflowMenuButton(ActionMenuPresenter _enclosing, android.content.Context
                           context) : base(context, null, [email protected]
                                           )
 {
     this._enclosing = _enclosing;
     this.setClickable(true);
     this.setFocusable(true);
     this.setVisibility(android.view.View.VISIBLE);
     this.setEnabled(true);
 }
示例#4
0
 public OpenOverflowRunnable(ActionMenuPresenter _enclosing, [email protected]
                             .OverflowPopup popup)
 {
     this._enclosing = _enclosing;
     this.mPopup     = popup;
 }
示例#5
0
 internal PopupPresenterCallback(ActionMenuPresenter _enclosing)
 {
     this._enclosing = _enclosing;
 }