OiO.lk Blog Android How to make the first element of each row in Jetpack Compose take the maximum width?
Android

How to make the first element of each row in Jetpack Compose take the maximum width?


In my case the first element in each row can be of different widths how can I make them all have the same maximum width?

I placed the elements in 2 different columns but then it’s hard to align them vertically
So I need to somehow calculate the maximum width of each first element, and then assign it to all the first elements

expected layout



You need to sign in to view this answers

Exit mobile version