Lines Matching refs:context
57 * @param context Context the popup menu is running in, through which it
62 public PopupMenu(@NonNull Context context, @NonNull View anchor) {
63 this(context, anchor, Gravity.NO_GRAVITY);
70 * @param context Context the popup menu is running in, through which it
77 public PopupMenu(@NonNull Context context, @NonNull View anchor, int gravity) {
78 this(context, anchor, gravity, R.attr.popupMenuStyle, 0);
84 * @param context Context the popup menu is running in, through which it
98 public PopupMenu(@NonNull Context context, @NonNull View anchor, int gravity,
100 mContext = context;
103 mMenu = new MenuBuilder(context);
118 mPopup = new MenuPopupHelper(context, mMenu, anchor, false, popupStyleAttr, popupStyleRes);
161 * PopupMenu myPopup = new PopupMenu(context, myAnchor);