You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the Bug:
.setDismissWhenTouchOutside(false) did not work
when click outside , the balloon dismissed
Add a clear description about the problem.
Code:
balloon?.dismiss()
balloon = Balloon.Builder(this)
.setText(desc)
.setTextSize(13f)
.setTextTypeface(Typeface.SANS_SERIF)
.setTextColorResource(R.color.colorTextWhite)
.setTextGravity(Gravity.CENTER_VERTICAL)
.setArrowSize(6)
.setArrowColor(ContextCompat.getColor(this,themeColor))
.setArrowOrientation(ArrowOrientation.BOTTOM)
.setLifecycleOwner(this)
.setArrowPosition(0.5f)
.setCornerRadius(4f)
.setPaddingLeft(16)
.setPaddingRight(16)
.setPaddingTop(8)
.setPaddingBottom(8)
.setCornerRadius(12f)
.setIsVisibleOverlay(true)
.setMaxWidthRatio(0.5f)
.setOverlayPadding(0F)
.setOverlayPaddingColor(ContextCompat.getColor(this@MainActivity,R.color.transparent))
.setOverlayColorResource(R.color.colorDim)
.setOverlayPaddingColorResource(R.color.colorPrimary)
.setOverlayShape(BalloonOverlayRoundRect(radius, radius))
.setShouldPassTouchEventToAnchor(true)
.setDismissWhenTouchOutside(false)
.setFocusable(false)
.setBackgroundColor(ContextCompat.getColor(this, themeColor))
.setBalloonAnimation(BalloonAnimation.CIRCULAR)
.setBalloonHighlightAnimation(BalloonHighlightAnimation.HEARTBEAT)
.build()
anchorView.post {
if (balloon?.isShowing == false){
balloon?.showAlignTop(anchorView)
}
} Expected Behavior:
when i clicked outside of the balloon , the balloon did not disappeared
A clear description of what you expected to happen.
The text was updated successfully, but these errors were encountered:
Please complete the following information:
Describe the Bug:
.setDismissWhenTouchOutside(false) did not work
when click outside , the balloon dismissed
Add a clear description about the problem.
Code:
balloon?.dismiss()
balloon = Balloon.Builder(this)
.setText(desc)
.setTextSize(13f)
.setTextTypeface(Typeface.SANS_SERIF)
.setTextColorResource(R.color.colorTextWhite)
.setTextGravity(Gravity.CENTER_VERTICAL)
.setArrowSize(6)
.setArrowColor(ContextCompat.getColor(this,themeColor))
.setArrowOrientation(ArrowOrientation.BOTTOM)
.setLifecycleOwner(this)
.setArrowPosition(0.5f)
.setCornerRadius(4f)
.setPaddingLeft(16)
.setPaddingRight(16)
.setPaddingTop(8)
.setPaddingBottom(8)
.setCornerRadius(12f)
.setIsVisibleOverlay(true)
.setMaxWidthRatio(0.5f)
.setOverlayPadding(0F)
.setOverlayPaddingColor(ContextCompat.getColor(this@MainActivity,R.color.transparent))
.setOverlayColorResource(R.color.colorDim)
.setOverlayPaddingColorResource(R.color.colorPrimary)
.setOverlayShape(BalloonOverlayRoundRect(radius, radius))
.setShouldPassTouchEventToAnchor(true)
.setDismissWhenTouchOutside(false)
.setFocusable(false)
.setBackgroundColor(ContextCompat.getColor(this, themeColor))
.setBalloonAnimation(BalloonAnimation.CIRCULAR)
.setBalloonHighlightAnimation(BalloonHighlightAnimation.HEARTBEAT)
.build()
anchorView.post {
if (balloon?.isShowing == false){
balloon?.showAlignTop(anchorView)
}
}
Expected Behavior:
when i clicked outside of the balloon , the balloon did not disappeared
A clear description of what you expected to happen.
The text was updated successfully, but these errors were encountered: