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.

Tooltips don't disappear when leaving fragment

See original GitHub issue

Please complete the following information:

  • Library Version 1.1.2
  • Affected Device(s) Emulator

Describe the Bug:

Settings:

setArrowSize(10)
//        setWidthRatio(1.0f)
setHeight(65)
setPadding(0)
setDismissWhenTouchOutside(true)
setPaddingLeft(10)
setPaddingRight(10)
//        setArrowPosition(.5f)
setSpace(10)
setCornerRadius(10f)
setAlpha(1f)
setTextColorResource(R.color.white)
setBackgroundColorResource(R.color.colorAccent)
setOnBalloonClickListener {
    onClick?.invoke()
}
setBalloonAnimation(BalloonAnimation.ELASTIC)
setLifecycleOwner(lifecycleOwner)

When I leave the fragment (e.g. to navigate to a new fragment). The tooltips stay on the screen.

Expected Behavior:

The tooltips disappear when navigating away (backwards or forwards) from fragment.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ivanschuetzcommented, Mar 25, 2020

Okay, I’d store the tooltips in a variable and close them manually when leaving the fragment.

0reactions
ivanschuetzcommented, Apr 3, 2020

The problem is that I want to disable the animation only when dismissing as part of leaving the screen. I want to keep them for normal usage.

Read more comments on GitHub >

github_iconTop Results From Across the Web

man i fucking love the unskippable tooltips that take up a third ...
Oh and don't forget, changing a fragment resets all your ability energy ... Had to wait 5 seconds for the prompt to disappear,...
Read more >
Bootstrap's tooltip doesn't disappear after button click ...
I have a problem with bootstrap's tooltip : When I click on a button, tooltip stays even if is the cursor is outside...
Read more >
Tooltip Guidelines - Nielsen Norman Group
Remember that tooltips disappear, so instructions or other directly actionable information, like field requirements, shouldn't be in a tooltip. ...
Read more >
Tooltip does not disappear on back press in Fragments #21
Tooltip is based on PopupWindow, so it dont capture key pressed automatically. You have to maintain a reference for Tooltip and override ......
Read more >
How to identify which program has left a portion of its UI ...
Find the tab it came from and just move your mouse around. The tooltip should disappear. (Unfortuantely, there's no easy way to determine...
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