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.

Unable to use arrow orientation at the bottom

See original GitHub issue

Please complete the following information:

  • Library Version: 1.3.4
  • Affected Device(s): OnePlus 5 (all devices though I guess)

Describe the Bug:

When using ArrowOrientation.TOP a centered balloon (presented in the center of an anchor view via .show) will have its arrow pointing upwards but will be located at an incorrect position relative to the anchor view. The position is calculated as if the arrow is pointing down not up.

Balloon balloon = new Balloon.Builder(context)
                .setArrowSize(20)
                .setArrowOrientationRules(ArrowOrientationRules.ALIGN_FIXED)
                .setArrowOrientation(ArrowOrientation.TOP)
                .setArrowColorResource(R.color.black)
                .setCornerRadius(0)
                .setText("Hello!")
                .setBalloonAnimation(BalloonAnimation.FADE)
                .setLifecycleOwner(this)
                .setSize(100, 100)
                .setElevation(5)
                .build();

balloon.show(buttonView);

Result:

Screenshot 2021-06-21 230129

Expected Behavior:

The balloon position should follow the arrow orientation, shifting the balloon downwards.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Jilocasincommented, Jun 22, 2021

Sorry for wording. My intention is to show the balloon ‘over’ the view in terms of z-index, not vertically. Both views should overlap each other, the arrow tip pointing to the anchor center. What I am looking for is the following:

grafik

This is a mockup made in GIMP. I wasn’t able to achieve this using any combination of config settings.

When using showAlign____ the whole balloon will be shifted down below or above the anchor view, resulting in the arrow pointing directly at the edge. This is not the intended look.

grafik

0reactions
skydovescommented, Sep 22, 2021

A new stable 1.3.8 has been released!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Fix Arrow Keys Not Working In Excel - Help Desk Geek
When you're working on an Excel spreadsheet, the best way to move between cells is to use the arrow keys on your keyboard....
Read more >
Move or scroll through a worksheet - Microsoft Support
Use the arrow keys to move through a worksheet ; To the start and end of ranges. Press CTRL+an arrow key to scroll...
Read more >
No longer able to use the arrow up/down keys to nudge artwork!
My workaround is to open the transform tool/panel, and play with the “X” or “Y” numbers to get a little “nudge”… so annoying!...
Read more >
3 Ways to Fix the Arrow Keys Not Working in Excel - MakeUseOf
1. Turn Off Scroll Lock. You won't be able to use the arrow keys if you have a scroll lock enabled on your...
Read more >
Unable to get required Orientation of arrow - TeX
On the bottom half, the vertical arrows are directed downwards. On the top half, the horizontal arrows are directed upwards. I'm able to...
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