question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Whole balloon is focused when displayed initially

See original GitHub issue
  • 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?

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
skydovescommented, Jul 16, 2022

Hey @nvasilev0101, sorry for the late response. Did you solve this issue? Also, I recommend using the recent version 1.4.5. Thanks!

0reactions
magneticchencommented, Oct 5, 2022

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. 😕

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Pymetrics Balloon Game - Strategy and Guide [2022]
The Pymetrics Balloon Game is one of 12 Pymetrics games. It assesses risk-taking and learning through 39 rounds of (seemingly) randomly popping balloons....
Read more >
Balloons
Display the balloon as soon as the problem or special condition is detected, even if repeatedly, without any noticeable delay. For problems ...
Read more >
Rocket Balloon - NZ Maths
Plan some initial exploration to help the students identify which direction the balloon will travel when the air is released.
Read more >
THE VALUE OF BLOWING UP A BALLOON - PMC - NCBI
This clinical suggestion presents a therapeutic exercise called the 90/90 bridge with ball and balloon. This exercise was designed to optimize breathing and ......
Read more >
First I would like to thank the Xoft staff for giving me the chance to ...
And the, what I'm trying to focus is on the treatment ... at 1.0 cm, of course, from the balloon and nicely covering...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found