Explore Compose's lazy components, which make it easy to display lists of items. Learn how to show different item types, implement sticky headers, and programmatically control or react to the scroll-position changes.
Key points
- The
LazyColumn
API is built as a DSL, differing from other layouts in Compose. - Use
LazyColumn
to display items visible on screen. - Use the
items()
function to pass items. The lambda defines the content of each of the items, so you can keep the existing code. - To display many different item types, use the
groupBy
function.
Collections that contain this guide
This guide is part of these curated Quick Guide collections that cover broader Android development goals:
Display a list or grid
Lists and grids allow your app to display collections in a
visually pleasing form that's easy for users to consume.
Compose basics (video collection)
This series of videos introduces various Compose APIs,
quickly showing you what’s available and how to use them.
Have questions or feedback
Go to our frequently asked questions page and learn about quick guides or reach out and let us know your thoughts.