Balloon
Balloon copied to clipboard
Whole balloon is focused when displayed initially
- Library Version 1.3.9
- Affected Device(s): I've tested it on devices with API 30 only, so Pixels and the Emulator
Describe the Bug:
I have implemented your library as a tool for showing mentions. The problem is, that after I show the pop-up, it gains focus I assume, which disappears after you touch the pop-up.
This is how I'm using the library:
balloon = Balloon.Builder(anchor.context)
.setLayout(popupLayout)
.setArrowSize(14)
.setWidthRatio(0.72f)
.setArrowElevation(4)
.setFocusable(false)
.setBackgroundColorResource(R.color.white)
.setElevation(4)
.setLifecycleOwner(anchor.findViewTreeLifecycleOwner())
.build()
Also, I tried using .setOverlayShape(BalloonOverlayCircle(radius = 0f))
, but it didn't change anything.
Expected Behavior:
I would expect to have the pop-up show without that tint or focus or whatever it is. Any idea what might be causing the tint to show like that?
Hi @nvasilev0101, Please add the below codes to your builder.
.setDismissWhenTouchOutside(false)
.setFocusable(false)
Hi @skydoves, I did play around with those options, but the tint is still showing even after setting both options to false.
Hey @nvasilev0101, sorry for the late response.
Did you solve this issue? Also, I recommend using the recent version 1.4.5
. Thanks!
Hey @nvasilev0101, sorry for the late response. Did you solve this issue? Also, I recommend using the recent version
1.4.5
. Thanks!
Hello. I've updated to 1.4.5
. However, the problem still exists. Here is the footage of it.
The balloon is focused when in the dpad mode.
@magneticchen Did you manage to solve this issue? I seem to be having the same problem where my balloon has that shadow like in your image?
@magneticchen Did you manage to solve this issue? I seem to be having the same problem where my balloon has that shadow like in your image?
Nope. It is still there.
Does it show always like that for you or sometimes it's ok?
Does it show always like that for you or sometimes it's ok?
It only happens when dpad mode is on. (Not in touch mode)
Hey guys, I'm wondering if you face still the same issue if you request focus to your anchor view after showing the balloon like the below:
val balloon = Balloon.Builder(context)
.setOnBaclloonInitializedListener {
anchor.requestFocus()
}
...
balloon.showAlignBotton(anchor)
Thanks!
Hey guys, I'm wondering if you face still the same issue if you request focus to your anchor view after showing the balloon like the below:
val balloon = Balloon.Builder(context) .setOnBaclloonInitializedListener { anchor.requestFocus() } ... balloon.showAlignBotton(anchor)
Thanks!
Yes. The issue is still happening. :/