showAtCenter

fun showAtCenter(anchor: View, xOff: Int = 0, yOff: Int = 0, centerAlign: BalloonCenterAlign = BalloonCenterAlign.TOP)

Shows the balloon over the anchor view (overlap) as the center aligns. Even if you use with the ArrowOrientationRules.ALIGN_ANCHOR, the alignment will not be guaranteed. So if you use the function, use with ArrowOrientationRules.ALIGN_FIXED and fixed ArrowOrientation.

Parameters

anchor

A target view which popup will be shown with overlap.

xOff

A horizontal offset from the anchor in pixels.

yOff

A vertical offset from the anchor in pixels.

centerAlign

A rule for deciding the alignment of the balloon.