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.

Set Arrow seems to not working

See original GitHub issue

Please complete the following information:

  • Library Version v1.1.2
  • Affected Device(s) (Tablet Samsung) Galaxy TAB A 2016

Describe the Bug:

I’m trying to add my custom arrow to the balloon but it only show the default one. I tried with both methods

setArrowDrawableResource setArrowDrawable

 val balloon = Balloon.Builder(this)
                .setLayout(R.layout.popup_qty)
                .setArrowSize(15)
                .setArrowOrientation(ArrowOrientation.TOP)
                .setArrowPosition(0.5f)
                .setCornerRadius(10f)
                .setArrowVisible(true)
                .setArrowDrawable(ContextCompat.getDrawable(this, R.drawable.ic_custom_arrow))
                .setBalloonAnimation(BalloonAnimation.OVERSHOOT)
                .setDismissWhenTouchOutside(true)
                .setLifecycleOwner(this)
                .build()

 balloon.showAlignBottom(view)

Expected Behavior:

Displaying my custom arrow

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
pcharbonniercommented, Mar 27, 2020

AAAh Maybe I missed something but

 val balloon = Balloon.Builder(activity!!)
                .setLayout(R.layout.popup_qty)
                .setArrowOrientation(ArrowOrientation.TOP)
                .setCornerRadius(4f)
                .setDismissWhenTouchOutside(true)
                .setAlpha(0.9f)
                .isRtlSupport(isRtlLayout())
                .setBackgroundColorResource(R.color.transparent)
                .setArrowDrawable(ContextCompat.getDrawable(activity!!, R.drawable.ic_arrow_gray))
                .setBalloonAnimation(BalloonAnimation.OVERSHOOT)
                .setLifecycleOwner(activity)
                .build()

now I have my arrow drawable. I removed some line and it’s working. Maybe setArrowDrawable where incompatible with some methods.

So, sorry, MY BAD, sorry for the issue that is not really an issue

0reactions
skydovescommented, Mar 27, 2020

Ah that’s okay. I’m glad your problem is solved. Thank you 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Arrow Keys Not Working in Excel? 5 Ways to Troubleshoot
1. Click Start and type "on screen keyboard." · 2. When you see On-Screen Keyboard appear in search results, click it. The on-screen...
Read more >
6 Ways To Fix Arrow Clearance Issues - YouTube
Learn about possible causes of arrow clearance issues.▻ Get exclusive free email content and tips: ...
Read more >
How to Fix: Arrow Keys Not Working in Excel - YouTube
In this tutorial we're going to have a look at how to fix the arrow keys when they're not working correctly in Excel....
Read more >
Arrow Keys Not Working in Excel - YouTube
In this video, I demonstrate how to turn scroll lock off when working in Excel. If scroll lock is turned on your arrow...
Read more >
Mouse, Touchpad, Keyboard Arrow Key Not Working ...
Arrow key not working in laptop, arrow key not working in illustrator, #Arrowkeynotworkinginexcel, #Arrowkeynotworkingwindows10, ...
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