Closed LithiumSheep closed 4 years ago
@lolsheeplol It seems a good way to scaling container.
I will try to implement to scale container size using padding and "wrap_content" layout attribute on the next version.
Thank you for giving a good issue! :)
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.
Hi, is there a better way to implement having a height option to wrap around the xml with keeping functionalities like showAlignTop? It uses a fixed height with bodyWindow.showAsDropDown
.
If the layout uses "wrap_content" option, we can't measure the specific height values.
Because of the popupWindow shows firstly and inflates the popupWindow 's content view.
https://github.com/rgocal/Material_PopUp_Menu
You can check and see if there's anything helpful, you could use from my popup menu library. (im actually replacing my library with yours for my project)
@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
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 dropbuilder.setHeight()
andbuilder.setWidth()
, and instead have something likebuilder.setPaddingVert()
andbuilder.setPaddingHoriz()
.Thoughts?