show

fun show(contentFragment: Fragment, anchorView: View, positionRelativeToAnchor: TtPopOver.PositionRelativeToAnchor, offsetXRelativeToAnchor: Int = 0, offsetYRelativeToAnchor: Int = 0)

Populates the TtPopOver with the contentFragment and displays it, using the value of positionRelativeToAnchor to determine the position relative to the anchorView. The optional offsetXRelativeToAnchor and offsetYRelativeToAnchor parameters can be used to adjust the horizontal and vertical position of the TtPopOver, for example, to prevent the TtPopOver overlapping the edge of the screen or to avoid overlapping a particular component.

If an existing TtPopOver is displayed, it will be dismissed before the new TtPopOver is shown.