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

Nicolai

03/19/2024, 5:42 PM
Hey guys, I’m trying to find a way around creating a subcompose layout for this but I’ve yet to find a good approach. I have a row with 4 items inside. Each item should be slightly higher than the previous one (like add 25%). Initially I used onGloballyPositioned to retrieve the height of the first item (should just wrap content height) which was used as a base for the height of the other items. Any good ideas? 🙏
z

Zach Klippenstein (he/him) [MOD]

03/19/2024, 5:58 PM
This is easy to do with a custom layout
2 Views