PopupWindowCompat

Helper for accessing features in PopupWindow.

Functions

Link copied to clipboard
open fun getOverlapAnchor(@NonNull popupWindow: PopupWindow): Boolean
Returns whether the popup window should overlap its anchor view when displayed as a drop-down.
Link copied to clipboard
open fun getWindowLayoutType(@NonNull popupWindow: PopupWindow): Int
Returns the layout type for this window.
Link copied to clipboard
open fun setOverlapAnchor(@NonNull popupWindow: PopupWindow, overlapAnchor: Boolean)
Sets whether the popup window should overlap its anchor view when displayed as a drop-down.
Link copied to clipboard
open fun setWindowLayoutType(@NonNull popupWindow: PopupWindow, layoutType: Int)
Set the layout type for this window.
Link copied to clipboard
open fun showAsDropDown(@NonNull popup: PopupWindow, @NonNull anchor: View, xoff: Int, yoff: Int, gravity: Int)
Display the content view in a popup window anchored to the bottom-left corner of the anchor view offset by the specified x and y coordinates.