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.

Support padding instead of height/width dp

See original GitHub issue

Is your feature request related to a problem?

For a balloon with multiple lines of text, having the balloon container scale with its height would be very useful.

Describe the solution you’d like:

At the moment the layout_balloon.xml file uses dp values instead of “wrap_content”. If the layout uses “wrap_content” for height, the builder can drop builder.setHeight() and builder.setWidth(), and instead have something like builder.setPaddingVert() and builder.setPaddingHoriz().

Thoughts?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:11
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
rustyhamsterrcommented, Jan 29, 2020

@skydoves Hi, I am using your library right now and want to improve it. I think using wrap content is a very important function and I wanted to start with this. Did you make progress since this issue was opened? Greetings rusty

1reaction
rgocalcommented, Sep 3, 2019

I was just going to ask about this. The problem i have right now is i have a list that changes size vertical depending on options available for the action. What i have to currently do is set a default height and add to that height when the listview has so many objects (1 action + add x height, 2 actions add xy height). I’ve even tried getting the view group height from tree observer to set that as the height but it adds to that value every time its calculated. Having a height option to wrap around the xml would be good.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to set Layoutparams height/width in dp value?
I tried setting height/width manually in button but it didn't work. Then implemented Layoutparams. But size shows small and not getting required dp...
Read more >
Compose modifiers - Jetpack - Android Developers
Jetpack Compose provides a list of built-in modifiers to help you decorate or augment a ... modifier = Modifier.size(width = 400.dp, height =...
Read more >
Modifier in Jetpack Compose
We can give size and spacing with the help of modifiers. Arrange the widgets within a layout. Beautify the widgets.
Read more >
Pixel density - Material Design
A dp is equal to one physical pixel on a screen with a density of 160. To calculate dp: dp = (width in...
Read more >
Size Matters: How I used React Native to make my App look ...
As you can see, all my stylesheet sizes are in dp units and no scaling was done. ... verticalScale is like scale, but...
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