You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched existing issues and confirmed this is not a duplicate
Issues and steps to reproduce
Not sure if this is possible, I have a RecyclerView with a FlexboxLayoutManager, each view in the RecyclerView is a CardView which has a FlexboxLayout which contains a set of TextViews. The TextViews can extend past the bottom of the screen, causing the FlexboxLayout to wrap to another column (great, expected behavior)
When the layout wraps, the two columns have the same height, which can lead to lots of wasted space. I'm wondering if there's a setting or where I would look to be able to have the second column "pin" to the height of its content, rather than matching the first column height.
(the lighter gray background is the parent CardView, the darker gray backgrounds are LinearLayouts (wrapping both Item with its Sub-items), those LinearLayouts are added to the CardView's FlexboxLayout.
Expected behavior (hopeful behavior)
It obviously looks tough because the CardView needs to be a rectangle, but I'm hoping to be able to trim down the empty whitespace so things can fit under it like so:
Issues and steps to reproduce
Not sure if this is possible, I have a RecyclerView with a FlexboxLayoutManager, each view in the RecyclerView is a CardView which has a FlexboxLayout which contains a set of TextViews. The TextViews can extend past the bottom of the screen, causing the FlexboxLayout to wrap to another column (great, expected behavior)
FlexboxLayerManager config:
When the layout wraps, the two columns have the same height, which can lead to lots of wasted space. I'm wondering if there's a setting or where I would look to be able to have the second column "pin" to the height of its content, rather than matching the first column height.
(the lighter gray background is the parent CardView, the darker gray backgrounds are LinearLayouts (wrapping both Item with its Sub-items), those LinearLayouts are added to the CardView's FlexboxLayout.
Expected behavior (hopeful behavior)
It obviously looks tough because the CardView needs to be a rectangle, but I'm hoping to be able to trim down the empty whitespace so things can fit under it like so:
Version of the flexbox library
2.0.0
Link to code
https://github.com/adziki/flexbox-layout-sample
The text was updated successfully, but these errors were encountered: