Lines Matching refs:gravity
77 * gravity.
83 * @param gravity The {@link Gravity} value for aligning the popup with its
86 public PopupMenu(Context context, View anchor, int gravity) {
87 this(context, anchor, gravity, R.attr.popupMenuStyle, 0);
97 * @param gravity The {@link Gravity} value for aligning the popup with its
107 public PopupMenu(Context context, View anchor, int gravity, int popupStyleAttr,
114 mPopup.setGravity(gravity);
119 * Sets the gravity used to align the popup window to its anchor view.
124 * @param gravity the gravity used to align the popup window
128 public void setGravity(int gravity) {
129 mPopup.setGravity(gravity);
133 * @return the gravity used to align the popup window to its anchor view