Simona Stojanovic works at Google as an Android Developer Relations Engineer, as part of the Jetpack Compose team. Before joining Google, Simona worked as an Android Dev in a variety of different industries – retail, transportation, banking, automotive & online dating. Aside from work, she loves to travel, read, organise stuff (?), play music & video games and spend time with her 4 fluffy pets.
Simona Stojanovic
Lazy and amazy – Lazy layouts in Compose
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.
Talk Title
Basic Layouts in Compose
Learn how to implement a realistic and complex UI using Compose Layouts. Use out-of-the-box composables and modifiers to transform designs into Compose code. Discover how to implement a screen from MySoothe, a sample relaxation app. Learn to write the code for each of the screen's separate elements, and then combine those into the complete screen.