setGravity

open fun setGravity(gravity: Int)(source)

Sets the alignment of the popup window relative to the anchor view.

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

Parameters

gravity

alignment of the popup relative to the anchor