setAnchorView

open fun setAnchorView(@NonNull anchor: @NonNull View)(source)

Sets the view to which the popup window is anchored.

Changes take effect on the next call to show().

Parameters

anchor

the view to which the popup window should be anchored