Esempio n. 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);
 }
Esempio n. 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);
            }
Esempio n. 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);
 }
Esempio n. 4
0
 public OpenOverflowRunnable(ActionMenuPresenter _enclosing, [email protected]
                             .OverflowPopup popup)
 {
     this._enclosing = _enclosing;
     this.mPopup     = popup;
 }
Esempio n. 5
0
 internal PopupPresenterCallback(ActionMenuPresenter _enclosing)
 {
     this._enclosing = _enclosing;
 }