Balloon Position Error in RecycleView #351
McanErtugrul
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Firstly, thanks for tool :)
I'm using Balloon Pop-up in recycleView.
If I use RecycleView without scrolling, there is no problem. But when the Balloon dialog appears after scrolling, it appears in the wrong place.
return Balloon.Builder(context) .setText(content) .setWidth(BalloonSizeSpec.WRAP) .setHeight(BalloonSizeSpec.WRAP) .setArrowSize(100) .setArrowPositionRules(ArrowPositionRules.ALIGN_ANCHOR) .setArrowPosition(0.5f) .setPaddingLeft(8) .setArrowOrientation(ArrowOrientation.TOP) .setPaddingRight(8) .setPaddingTop(12) .setPaddingBottom(12) .setMarginRight(12) .setMarginLeft(12) .setTextTypeface(ResourcesCompat.getFont(context, R.font.opensans_regular)!!) .setTextSize(12f) .setCornerRadius(8f) .setAutoDismissDuration(3000L) .setTextColorResource(R.color.white) .setBackgroundColorResource(R.color.color_nile_blue) .setBalloonAnimation(BalloonAnimation.ELASTIC) .setLifecycleOwner(lifecycleOwner) .build()
Beta Was this translation helpful? Give feedback.
All reactions