PopupWindow

Page 1 2

public boolean isAboveAnchor() source
public boolean isShowing() source
public void showAtLocation(View parent, int gravity, int x, int y) source

At (x, y) from the gravity's edges of the display, Gravity.NO_GRAVITY meaning the top left

public void showAsDropDown(View anchor) source
public void showAsDropDown(View anchor, int xoff, int yoff) source
public void showAsDropDown(View anchor, int xoff, int yoff, int gravity) source

Below the anchor's left edge (its right one for an end gravity), moved by the offsets; above it when the space below is smaller than the popup and than the space above.

public int getMaxAvailableHeight(View anchor) source
public int getMaxAvailableHeight(View anchor, int yOffset) source
public int getMaxAvailableHeight(View anchor, int yOffset, boolean ignoreBottomDecorations) source
public void dismiss() source
public void setOnDismissListener(OnDismissListener onDismissListener) source
public void update() source

the shown window's params again from the popup's state: its flags, and its size and place as given

public void update(int width, int height) source
public void update(int x, int y, int width, int height) source
public void update(int x, int y, int width, int height, boolean force) source

a size of -1 keeps the window's, a place of -1 too (both or neither)

public void update(View anchor, int width, int height) source
public void update(View anchor, int xoff, int yoff, int width, int height) source

Page 1 2


Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.