Migrating to Paging Library

Florina Muntenescu

Android Developer Advocate

Google

Florina is working as an Android Developer Advocate at Google, helping developers architect clean, testable apps using the Architecture Components libraries. She has been working with Android for 8 years, previous work covering news at upday, payment solutions at payleven and navigation services at Garmin.

twitter-logo-button.png
Abstract

The paging library offers a complete solution for efficiently displaying large lists of data but adopting such a comprehensive library can be daunting. In this talk, I’ll cover some of the lessons we learned while gradually migrating from a RecyclerView.Adapter, populated from a tightly coupled domain and presentation layers, to Paging library. You’ll learn about the main components of the Paging library, where they fit in your architecture, how decoupling the UI and the data/domain layers results in more maintainable & testable code. You’ll understand which DataSource type you need for your use case see how you can display multiple data types in the same RecyclerView and how to handle other use cases like interactions with a view item, deleting or inserting an item, selection states or showing section headers. Learn from our experience how to migrate to paging and the benefits we saw.

  • Grey Facebook Icon
  • Grey Twitter Icon
  • Grey YouTube Icon

Droidcon is a registered trademark of Mobile Seasons GmbH