Lists with LazyColumn
Display scrolling lists efficiently.
Why Not Just a Column?
A Column composes all its children at once. For a long or scrolling list, that wastes memory and slows the UI. You need a list that only builds visible items.
Enter LazyColumn
LazyColumn is a scrollable, vertical list that only composes the items currently on screen — like the old RecyclerView, but far simpler.
LazyColumn {
items(messages) { msg ->
Text(text = msg)
}
}All lessons in this course
- Column, Row, and Box
- The Modifier System
- Alignment and Arrangement
- Lists with LazyColumn