balloon / com.skydoves.balloon / Balloon

Balloon

class Balloon : LifecycleObserver

Balloon implements showing and dismissing text popup with arrow and animations.

Types

Builder

Builder class for creating Balloon.

class Builder

Factory

An abstract factory class for creating Balloon instance.

abstract class Factory

Constructors

<init>

Balloon implements showing and dismissing text popup with arrow and animations.

Balloon(context: Context, builder: Builder)

Properties

isShowing

var isShowing: Boolean

onBalloonClickListener

var onBalloonClickListener: OnBalloonClickListener?

onBalloonDismissListener

var onBalloonDismissListener: OnBalloonDismissListener?

onBalloonOutsideTouchListener

var onBalloonOutsideTouchListener: OnBalloonOutsideTouchListener?

Functions

dismiss

dismiss the popup menu.

fun dismiss(): Unit

dismissWithDelay

dismiss the popup menu with milliseconds delay.

fun dismissWithDelay(delay: Long): Unit

getContentView

gets a content view of the balloon popup window.

fun getContentView(): View

getMeasureHeight

gets measured height size of the balloon popup.

fun getMeasureHeight(): Int

getMeasureWidth

gets measured width size of the balloon popup.

fun getMeasureWidth(): Int

onDestroy

dismiss automatically when lifecycle owner is destroyed.

fun onDestroy(): Unit

relayShow

shows the balloon on the center of an anchor view and shows the next balloon sequentially. This function returns the next balloon.

fun relayShow(balloon: Balloon, anchor: View): Balloon

shows the balloon on an anchor view with x-off and y-off and shows the next balloon sequentially. This function returns the next balloon.

fun relayShow(balloon: Balloon, anchor: View, xOff: Int, yOff: Int): Balloon

relayShowAlignBottom

shows the balloon on an anchor view as the bottom alignment and shows the next balloon sequentially. This function returns the next balloon.

fun relayShowAlignBottom(balloon: Balloon, anchor: View): Balloon

shows the balloon on an anchor view as the bottom alignment with x-off and y-off and shows the next balloon sequentially. This function returns the next balloon.

fun relayShowAlignBottom(balloon: Balloon, anchor: View, xOff: Int, yOff: Int): Balloon

relayShowAlignLeft

shows the balloon on an anchor view as the left alignment and shows the next balloon sequentially. This function returns the next balloon.

fun relayShowAlignLeft(balloon: Balloon, anchor: View): Balloon

shows the balloon on an anchor view as the left alignment with x-off and y-off and shows the next balloon sequentially. This function returns the next balloon.

fun relayShowAlignLeft(balloon: Balloon, anchor: View, xOff: Int, yOff: Int): Balloon

relayShowAlignRight

shows the balloon on an anchor view as the right alignment and shows the next balloon sequentially. This function returns the next balloon.

fun relayShowAlignRight(balloon: Balloon, anchor: View): Balloon

shows the balloon on an anchor view as the right alignment with x-off and y-off and shows the next balloon sequentially. This function returns the next balloon.

fun relayShowAlignRight(balloon: Balloon, anchor: View, xOff: Int, yOff: Int): Balloon

relayShowAlignTop

shows the balloon on an anchor view as the top alignment and shows the next balloon sequentially. This function returns the next balloon.

fun relayShowAlignTop(balloon: Balloon, anchor: View): Balloon

shows the balloon on an anchor view as the top alignment with x-off and y-off and shows the next balloon sequentially. This function returns the next balloon.

fun relayShowAlignTop(balloon: Balloon, anchor: View, xOff: Int, yOff: Int): Balloon

relayShowAsDropDown

shows the balloon on an anchor view as drop down and shows the next balloon sequentially. This function returns the next balloon.

fun relayShowAsDropDown(balloon: Balloon, anchor: View): Balloon

shows the balloon on an anchor view as drop down with x-off and y-off and shows the next balloon sequentially. This function returns the next balloon.

fun relayShowAsDropDown(balloon: Balloon, anchor: View, xOff: Int, yOff: Int): Balloon

setOnBalloonClickListener

sets a OnBalloonClickListener to the popup using lambda.

fun setOnBalloonClickListener(unit: (View) -> Unit): Unit

setOnBalloonDismissListener

sets a OnBalloonDismissListener to the popup using lambda.

fun setOnBalloonDismissListener(unit: () -> Unit): Unit

setOnBalloonOutsideTouchListener

sets a OnBalloonOutsideTouchListener to the popup using lambda.

fun setOnBalloonOutsideTouchListener(unit: (View, MotionEvent) -> Unit): Unit

show

shows the balloon on the center of an anchor view.

fun show(anchor: View): Unit

shows the balloon on an anchor view with x-off and y-off.

fun show(anchor: View, xOff: Int, yOff: Int): Unit

showAlignBottom

shows the balloon on an anchor view as the bottom alignment.

fun showAlignBottom(anchor: View): Unit

shows the balloon on an anchor view as the bottom alignment with x-off and y-off.

fun showAlignBottom(anchor: View, xOff: Int, yOff: Int): Unit

showAlignLeft

shows the balloon on an anchor view as the left alignment.

fun showAlignLeft(anchor: View): Unit

shows the balloon on an anchor view as the left alignment with x-off and y-off.

fun showAlignLeft(anchor: View, xOff: Int, yOff: Int): Unit

showAlignRight

shows the balloon on an anchor view as the right alignment.

fun showAlignRight(anchor: View): Unit

shows the balloon on an anchor view as the right alignment with x-off and y-off.

fun showAlignRight(anchor: View, xOff: Int, yOff: Int): Unit

showAlignTop

shows the balloon on an anchor view as the top alignment.

fun showAlignTop(anchor: View): Unit

shows the balloon on an anchor view as the top alignment with x-off and y-off.

fun showAlignTop(anchor: View, xOff: Int, yOff: Int): Unit

showAsDropDown

shows the balloon on an anchor view as drop down.

fun showAsDropDown(anchor: View): Unit

shows the balloon on an anchor view as drop down with x-off and y-off.

fun showAsDropDown(anchor: View, xOff: Int, yOff: Int): Unit