Infinite Scrolling With Paging 3 In Jetpack Compose.
In this article we will be talking about Pagination in Jetpack Compose. Pagination means loading small chunks of data at a time in the application.
Suppose you have large amount of data in the server and you want to show that on the UI. Obviously you don’t want to load whole data at once. You want , it should load small amount of data at once.
So this is what pagination does , when you scroll up in the app, it loads the next data, through that we can improve the performance of our app.
Basically we are going to build a very simple application, where we will show dogs images on the RecyclerView through paging 3 library. The best part is you can do infinite scrolling without worried about the performance of the app.
As you can see in the above video , we are showing the dogs image on the Recyclerview , and best part is when we are scrolling down then the images are loading.