In compose, can we get width dynamically? For exam...
# compose
a
In compose, can we get width dynamically? For example I do have a Row with fillMaxWidth and in the elements I have two Box inside row to which I want to provide 50%-50% width of parent Row. If yes, how can I achieve it?
j
Use the `.weight()`modifier on the children. Or
.fillMaxWidth(fraction)
👍 1
a
great thanks a lot @jannis, it worked.
👌 1
c
Be sure to check out our Layout guides: https://developer.android.com/jetpack/compose/layouts/ We cover many things here