Questions tagged [android-paging-3]

The Paging library helps you load and display pages of data from a larger dataset from local storage or over network.The latest stable release is Paging 3.0.1

324 questions
0
votes
0 answers

How to compare PagingData to Local Database in MVVM [Android]

Hey there i have a bottom navigation view and multiple fragments to be exact 3 of them what they do-> Home -> Shows random images from a paginated api with a heart icon based on if its saved Search -> Searches for images with a query from a…
0
votes
1 answer

How to submit non pagingData(just list of objects) to PagingDataAdapter?

I just implemented pagination with paging 3 library. So, I did everything according to documentation. From backend I query a list of Posts, and it comes paginated with next and prev keys, that's why I decided to use paging 3. Then, after converting…
0
votes
1 answer

What does the initialKey parameter do in the Pager constructor

I am trying to understand what the initialKey does in the Pager constructor, but I cannot find any sort of explanation, not even in the official…
Shadow
  • 4,168
  • 5
  • 41
  • 72
0
votes
1 answer

DiffUtil.ItemCallback areItemsTheSame() method check items twice

I send request to /list.php?page=1 and display data in UI with Paging 3 component. In first request, areItemsTheSame(new, old) method do nothing. No log in Logcat. Then i refresh data with SwipeRefreshLayout and request sent same api…
0
votes
1 answer

How to implement ItemKeyedDataSource of Paging 3 with the new Paging library 3 with RxSupport like RxPagingSource

In fact, I am trying to migrate from paging 2 to paging 3. Already I have successfully implemented PageKeyedDataSource of Paging 2 with RxpagingSource in my codebase. But when I tried to implement ItemKeyedDataSource of Paging 2 to Paging library 3,…
Aminul Haque Aome
  • 2,261
  • 21
  • 34
-1
votes
1 answer

Paging Library 3 Loading states not working

I have an application which fetches movies from the moviedb api , i'm using paging library 3 to page the data , i have set up everything and data is showing properly , the only thing that is not working in loading states , upon reading little bit…
Taki
  • 3,290
  • 1
  • 16
  • 41
-1
votes
1 answer

How to use Firestore with paging 3 and RxPagingSource

I am creating an app in which i am using RxJava and paging 3 library. I am using RxPagingSource and Retrofit to paginate response coming from Server but i have to fetch some data from Firestore and have to paginate override fun loadSingle(params:…
1 2 3
21
22