Home > Blockchain >  Jetpack Compose: How can I align the height of the items of the first column in a row depending on t
Jetpack Compose: How can I align the height of the items of the first column in a row depending on t

Time:02-06

I want the items of the first column to stretch their height depending on the total height of the other column in the row.

Now I have it:

enter image description here

And I want it to be like that:

enter image description here

Is this possible without hardcoding the height through calculations?

CodePudding user response:

Use compose arrangement 'equal weight' according to this documentation link

Modifier.weight()
  • Related