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

Diego

10/29/2021, 3:14 PM
Why do we need
LazyColumn
if we can do the same thing with a vertical scrollable
Column
? Is it because performance-wise the LazyColumn is better? 🤔
f

Filip Wiesner

10/29/2021, 3:17 PM
It's like diference between
LinearLayout
and
RecyclerView
. One just lays out everything at once and one reuses elements (nodes) to be more performant
c

Colton Idle

10/29/2021, 3:51 PM
I remember asking this way back. I basically asked... why even have a column at all and just always have a Column be lazy internally. But the gist was that one is simpler than the other, and conveys intent a bit more clearly. Search my name and you might be able to find that thread. Romain replied to it I remember.
2 Views