Jetpack Compose brings a much simpler way to create scrolling layouts than the RecyclerView before it, with fewer lines of code. In this talk, we take a closer look at Lazy layouts in Compose and how this API enables adding content on demand. We will learn about Lazy composables – how and when to use them, how they are built and how they work under the hood, as well as how to change their default implementation to adjust them to your specific design needs. We will also talk about how to optimise for performance with faster scrolling, why you should always provide unique keys, as well as avoid 0-pixel sized items and nesting components scrollable in the same direction. Understanding the low level details of how Lazy works in Compose can set the path for implementing custom Lazy layouts for more complex requirements. We will also take a look at some exciting new features, such as Lazy grids and item animations.

Menu