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

Shakil Karim

02/15/2021, 3:42 PM
Is there is any to achieve Weight like behavior in LazyColumn I have 1 item taking 100 dp and I want 2 item to fill the remaining space not fill the entire screen?
d

Denis

02/15/2021, 3:50 PM
I don't know the answer. Why do you use LazyColumn in the first place?
a

Andrey Kulikov

02/15/2021, 6:46 PM
there is a
verticalArrangement
param. I don’t think there is any predefined arrangement for exactly that behaviour, but you can pretty easily write your own arrangement
s

Shakil Karim

02/16/2021, 9:13 AM
@Andrey Kulikov BoxWithConstraints is the easiest solution that work for me. but not sure in terms of performance.
2 Views