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
Questions tagged [android-paging-3]
324 questions
0
votes
0 answers
Using Paging 3 to paginate a list with a startRecord and an endRecord
I am using paging 3 and cannot find my use case in the available tutorials.
basically I paste is the example i find in the documentation and in all the tutorials on line, basically backend.searchUsers(query, nextPageNumber) does not fit my case I…

Drocchio
- 383
- 4
- 21
0
votes
0 answers
Data not updating with Paging 3 and Firestore
So i have a RecyclerView and i fetch all the data, then if a user clicks on some buttons it triggers the same function but with a different filter.
The issue i'm having is it won't clear the old data when the new query returns empty.
So if it load…

Puntogris
- 325
- 2
- 13
0
votes
0 answers
Playing videos in a paging adapter
I have been trying to paginate data from firebase firestore using paging 3 library.
I have followed this article - https://medium.com/@ericampire/firestore-pagination-with-paging-3-762e371cc57f.
My database holds url to videos and their thumbnails,…
0
votes
1 answer
How to continue paging after swipe to refresh error?
I am implementing swipe to refresh with the PagingLibrary 3.0.
My repository returns a flow of PagingData- which is then exposed as LiveData by a viewmodel.
Repository
override fun getItems(): Flow
> {
val pagingConfig =…

PesaThe
- 7,259
- 1
- 19
- 43
0
votes
1 answer
How to have two recycler views in the same view with one over the other
I am trying to create a chat app.
What I want:
To implement an infinite list of previous messages
To append new messages to the beginning of list whenever a new message is received/sent.
I have implemented infinite list of previous messages using…

Hyzam
- 143
- 8
0
votes
1 answer
How to Use FirebaseFirestore with Paging 3 Library?
I wanted to build an application like Twitter where I have to display a list of data sets with live updates for counting like and comments in real time.
For that, I am using
RecyclerView - for displaying list of scrollable data
Jetpack LiveData -…
user13871738
0
votes
1 answer
Is there a way to convert a List to a PagedData while the backing paging source data doesn't use room db
I do have a paged data source that returns a PagedData data that is displayed with the pagedAdapter after initial load from SQLite. After some server transactions,I receive a list
of List and after transforming and caching it need to display…

cap_muho
- 63
- 7
0
votes
1 answer
In Paging3, after deleting the item, how to return the recyclerview to its original position?
I imitated the codelab and implemented the getRefreshKey() method, but since the params.loadSize is 3*PAGE_SIZE after refresh(that is, to delete an item or edit an item), most of the probability of my recyclerview will not return to the original…

pnkj
- 406
- 5
- 17
0
votes
1 answer
How to stop looping same recycler view data in Android?
In my API, there is no pageSize or unique id for each products is there, but I still implemented Paging 3 library and comparator inside adapter as well with live data for latest changes.
Now the problem is: Suppose total only 10 items are there in…
user14016240
0
votes
0 answers
"Cannot access database on the main thread" error when trying to get paging source from room inside paging 3 pager
E/ROOM: Cannot run invalidation tracker. Is the db closed?
java.lang.IllegalStateException: Cannot access database on the main thread since it may potentially lock the UI for a long period of time.
at…

yao
- 293
- 2
- 11
0
votes
1 answer
How does Paging 3 handle data and interact with room
So I've been interacting with the paging 3 library lately and i learned a lot about it, but there are a few things that are still pretty difficult to grasp.
My question is divided in a couple of points, the first might be a bug, the second purely…

alessandro gaboardi
- 889
- 3
- 11
- 26
0
votes
0 answers
How can i use Pagination 3 with Firestore?
So, i'm building an app. And i have to get data to recyclerView from Firestore. I don't want to use FirebaseUI but couldn't figure out the Pagination 3 for it aswell. There is only one Medium story about it, which didn't work for me. So, im…
user14507741
0
votes
1 answer
what's the meaning of the PREPEND status in paging3?
I have seen the demo given in google github. But it just retuen with MediatorResult.Success(endOfPaginationReached = true)
while, if it change it to MediatorResult.Success(endOfPaginationReached = false),my code also runing sussessfully.
so, i want…

pnkj
- 406
- 5
- 17
0
votes
1 answer
Can I modify the data set of a PagingDataAdapter using peek()?
I am looking for a way to update specific items in my PagingDataAdapter from the Paging 3 library. The recommended way at the moment seems to be to invalidate the PagingSource but this causes the adapter to fetch the whole data set again, which is…

Florian Walther
- 6,237
- 5
- 46
- 104
0
votes
0 answers
Paging 3 return last value after observe again to LiveData in a Fragment
In my case, I fetched a list of data and show it in a RecyclerView using PagingDataAdapter but the issue arose after navigation to a different Fragment then navigate back to the previous Fragment (A -> B -> A), so after reobserve again to the…

Mohammed Hemaid
- 115
- 3
- 10