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 theitems()
block. LazyListState
is an important state object that stores the scroll position and contains useful information on your list.
Resources
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.
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.