![]() ![]() ![]() setArrowOrientationRules( ArrowOrientationRules. ALIGN_ANCHOR) // default // Align to fixed ArrowOrientation value. However, if there is not enough free space to place the tooltip at the bottom of the anchor, // tooltips will be placed top of the anchor and the orientation of the arrow will be `ArrowOrientation.BOTTOM`. For example, `arrowOrientation` is ArrowOrientation.TOP and // we want to show up the balloon under an anchor using the `Balloon.showAlignBottom`. Align depending on the position of an anchor. shows the balloon over the anchor view (overlap) as the center aligns.Īlso, We can show up the Balloon with Kotlin extensions. Also, we can adjust specific positions of the Balloon by using x-Offset and y-Offset parameters.īalloon.showAlignTop(anchor : View) // shows the balloon on an anchor view as the top alignment.īalloon.showAlignTop(anchor : View, xOff : Int, yOff : Int) // shows top alignment with x-off and y-off.īalloon.showAlignBottom(anchor : View) // shows the balloon on an anchor view as the bottom alignment.īalloon.showAlignBottom(anchor : View, xOff : Int, yOff : Int) // shows bottom alignment with x-off and y-off.īalloon.showAlignRight(anchor : View) // shows the balloon on an anchor view as the right alignment.īalloon.showAlignRight(anchor : View, xOff : Int, yOff : Int) // shows right alignment with x-off and y-off.īalloon.showAlignLeft(anchor : View) // shows the balloon on an anchor view as the left alignment.īalloon.showAlignLeft(anchor : View, xOff : Int, yOff : Int) // shows left alignment with x-off and y-off.īalloon.showAsDropDown(anchor : View) // shows the balloon as a dropdown without any alignments.īalloon.showAsDropDown(anchor : View, xOff : Int, yOff : Int) // shows no alignments with x-off and y-off.īalloon.showAtCenter(anchor : View, xOff : Int, yOff : Int, centerAlign : BalloonCenterAlign. If we use showAlign_ method, we can show up the Balloon based on alignments ( top, bottom, right, left). We can show up the Balloon using the functions below. setOnBalloonClickListener( onBalloonClickListener) setText( "You can access your profile from now on.") setArrowPositionRules( ArrowPositionRules. ![]()
0 Comments
Leave a Reply. |