Package org.robolectric.shadows
Class ShadowPopupMenu
java.lang.Object
org.robolectric.shadows.ShadowPopupMenu
@Implements(android.widget.PopupMenu.class) public class ShadowPopupMenu extends Object
-
Constructor Summary
Constructors Constructor Description ShadowPopupMenu()
-
Method Summary
Modifier and Type Method Description protected void
dismiss()
static PopupMenu
getLatestPopupMenu()
PopupMenu.OnMenuItemClickListener
getOnMenuItemClickListener()
boolean
isShowing()
static void
setLatestPopupMenu(ShadowPopupMenu latestPopupMenu)
protected void
setOnMenuItemClickListener(PopupMenu.OnMenuItemClickListener listener)
protected void
show()
-
Constructor Details
-
ShadowPopupMenu
public ShadowPopupMenu()
-
-
Method Details
-
show
-
dismiss
-
setOnMenuItemClickListener
@Implementation protected void setOnMenuItemClickListener(PopupMenu.OnMenuItemClickListener listener) -
isShowing
public boolean isShowing() -
getLatestPopupMenu
-
setLatestPopupMenu
-
getOnMenuItemClickListener
-