Lazy lists in Compose

Compose gives you a simpler and more performant way to create scrolling lists, using fewer lines of code than RecyclerView. Learn how to use lazy layouts to create lists that let you add content to lists, on demand.

Key points

  • Use lazy layouts to add content on demand for a significant number of items or large datasets, increasing your app's performance and responsiveness.
  • This approach lets you focus on describing your item content while lazy lists handle everything else.
  • You can describe one item using the item() block or multiple items with the items() block.
  • LazyListState is an important state object that stores the scroll position and contains useful information on your list.

Resources

Parent collections

Lists and grids allow your app to display collections in a visually pleasing form that's easy for users to consume.

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.