So here is a complete step by step series about Android Paging Library.
This is the final video and in this video we will learn
– Creating Data Source Factory
– Creating View Model
– Setting the adapter to RecyclerView
Source Code: https://github.com/probelalkhan/android-paging-library/commits/master
The android paging library helps us to load data within our apps recyclerview gracefully and gradually.
Android paging library is used when we have a huge set of data to display in our application.
For example consider an app that displays a huge list, but the user sees only small portion at a time from that huge list, so loading all the data at once is a bad idea and we need to page the data, and here comes the use of android paging library.
In this series we will learn using the android paging library. But before moving ahead in this series here are the prerequisites that are required.