October 22, 2024
Chicago 12, Melborne City, USA
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

Leave feedback about this

  • Quality
  • Price
  • Service

PROS

+
Add Field

CONS

+
Add Field
Choose Image
Choose Video