Join Slack
Menu
Home
Archive
How can I make a `Row` wrap its content, but have a max width of half its parent?
# compose
j
Jason Ankers
03/10/2021, 7:47 AM
How can I make a
Row
wrap its content, but have a max width of
half
its parent?
y
Yoshio Schermer
03/10/2021, 7:56 AM
I believe Row has modifiers for wrapping content. If you want max width of the parent, you could add Modifier.fillMaxWidth(0.5f) to the Row. There is also a modifier for weight you might be able to use (
https://developer.android.com/jetpack/compose/layout#weight-in-row-and-column
).
1668
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by