set a different anchor after the menu is inflated . concode_field_sep MenuPopup mMenuPopup concode_elem_sep MenuPanel mMenuPanel concode_elem_sep OnMenuItemLongClickListener mLongClickListener concode_elem_sep GeckoMenu mMenu concode_elem_sep OnDismissListener mDismissListener concode_elem_sep View mAnchor concode_elem_sep GeckoMenuInflater mMenuInflater concode_elem_sep OnMenuItemClickListener mClickListener concode_field_sep boolean onMenuItemLongClick concode_elem_sep boolean onMenuItemLongClick concode_elem_sep void openMenu concode_elem_sep boolean onDismiss concode_elem_sep void setOnDismissListener concode_elem_sep void show concode_elem_sep void dismiss concode_elem_sep void closeMenu concode_elem_sep void setOnMenuItemLongClickListener concode_elem_sep void inflate concode_elem_sep void showMenu concode_elem_sep GeckoMenu getMenu concode_elem_sep MenuInflater getMenuInflater concode_elem_sep void setOnMenuItemClickListener concode_elem_sep void initialize concode_elem_sep boolean onMenuItemClick concode_elem_sep boolean onMenuItemClick
void function ( View arg0 ) { mAnchor = arg0 ; if ( mMenuPopup . isShowing ( ) ) { mMenuPopup . dismiss ( ) ; mMenuPopup . showAsDropDown ( mAnchor ) ; } }