'Jetpack Compose maxRows Layout
I have a requirement do display a variable number of variable-width elements up to a maximum of 2 rows.
For example I might have:
|
V End of row
AA | BBBB | C | DDDDDDDD
EEEE | FF | GGGG
HHHHHHHHHHHHHHH (too wide to fit on row 2 therefore ignored)
I'm not worried about reordering the elements to maximise the amount displayed but I'm not quite sure how to go about it. I feel like it should be a custom Layout but I can't see any examples that I can easily adapt to my purposes.
Can anyone point me in the right direction (hopefully with code examples)?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
