Support padding instead of height/width dp
See original GitHub issueIs 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:
- Created 4 years ago
- Reactions:11
- Comments:7 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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
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.