https://kotlinlang.org logo
#compose
Title
# compose
p

Pablo Costa

02/12/2021, 3:58 PM
Hi there folks, hope you all are extremely well 👋
Copy code
Row(
    modifier = Modifier.padding(horizontal = 16.dp),
    horizontalArrangement = Arrangement.spacedBy(16.dp)
) {
    HeighDependsOnContentComposable(modifier = Modifier.weight(1f))
    HeighDependsOnContentComposable(modifier = Modifier.weight(1f))
}
Is there any way I can have both composables with the same height? This is taking the heigh of the tallest one? Is this one of the scenarios where ConstraintLayout would help? Thanks!!! 🙏
a

Adam Powell

02/12/2021, 4:00 PM
https://developer.android.com/codelabs/jetpack-compose-layouts#9 the intrinsic size APIs are likely to help you here
p

Pablo Costa

02/12/2021, 4:03 PM
Great! Let me take a look.
Thanks @Adam Powell!! That worked out very well!
👍 1
k

Kshitij Patil

02/13/2021, 3:34 PM
@Pablo Costa can paste the could that worked for you? Thanks!