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.

Balloon does not adapt to the height of a custom View

See original GitHub issue

Please complete the following information:

  • Library version: com.github.skydoves:balloon:1.2.7
  • Affected Device: Samsung Galaxy s9 with Android 9.0

Describe the Bug:

We have implemented Balloon with a custom layout. Although the height has specified, some of the text will be cut out if the user adjusts the system font-size.

Code: https://github.com/wikimedia/apps-android-wikipedia/blob/22b07cdefc8fd184601ae657a2b01dcefd31ed57/app/src/main/java/org/wikipedia/util/FeedbackUtil.java#L226-L234

Expected Behavior: The library adapts the height of the custom view automatically.

I have checked https://github.com/skydoves/Balloon/issues/112 but it does not work for me.

Issue Analytics

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

github_iconTop GitHub Comments

6reactions
skydovescommented, Feb 26, 2021

@cooltey @epool

Finally, released a new 1.3.3 stable version.

Thanks for helping to fix this issue! I hope your projects will be going well and I will more appreciate adding this library on the Librareis used or Open source license pages. 👍

3reactions
coolteycommented, Feb 22, 2021

Hi, @cooltey. Ohh I’m sorry for this issue. 🙏 I just found there are some wrong calculations for measuring the width size of the TextView. Could you build again using the below SNAPSHOT version?

1.3.3-SNAPSHOT

You may need to add this to your gradle file.

repositories {
   maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}

If this issue would be fixed, I will release the next stable version.

Thanks, @skydoves, the SNAPSHOT version looks pretty good to me! It fixes all the issues 💯 👍

Looking forward to seeing the latest release, and thanks again for your hard works!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom View not showing: no height, but still width
My custom view, only created to show a specific color, won't show in the view of my emulator (although it seems to show...
Read more >
How to fill a box with an image without distorting it
In this guide you can learn a technique for causing an HTML image to completely fill a box.
Read more >
Change Canvas Size
If you use [Change Canvas Size] when there is a selection area or when the crop marks are not aligned correctly in a...
Read more >
Frame Behaviors with SwiftUI
When we use this method, it may seem we are forcing the view's width and height. That is usually the visual effect we...
Read more >
Creating Mobile Games for Different Screen Sizes and ...
Android resolution and iOS resolution are completely different. So how should you create an app or a game that fits all? Learn more...
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