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
2
votes
1 answer
Android Paging 3 clear recyclerview on invalidate()
I have paged list to which there is a possibility to apply some filter. After user applies the filters, recyclerview should display 0 items with the loading footer until it loads the first items and fire a LoadResul.Error in case there is nothing to…

MONK
- 179
- 2
- 15
2
votes
1 answer
Paging 3 Item flickers on refresh
I'm using Paging 3 with flows to populate my RecyclerView, I click on an item and go to a details page and upvote the item, this adds 1 to a counter visible in the ViewHolder.
Everything populates correctly and I've refreshes when I come back to the…

Dannys
- 335
- 1
- 5
- 12
2
votes
1 answer
Unable to create call adapter for class java.lang.Object while trying to make get request using Retrofit
I'm getting the following error while trying to make a get request to the NewsApi.org api. Everything seems to be correct according to their documentation, and my setup is basically the same as a lot of tutorials and some come samples I found on…

jfransp
- 85
- 7
2
votes
0 answers
Second page is loaded immediately while other pages doesn't load at all. Paging 3
I tried to implement the pagination with Paging 3 library. For this purpose I created fake request in Requests class:
fun getBerubyMerchantsByFilter(body: BerubyMerchantsByFilterRequest) = Single.just(
BerubyMerchantsByFilterResponse(
…

Sergei Mikhailovskii
- 2,100
- 2
- 21
- 43
2
votes
1 answer
Pagination with Room not able to merge Flow> with other flows properly
I'm trying to use Paging 3 library to get Flow> from Room, then check if item was selected or not in the recyclerview so I'm mapping this class to another class called ScanMapper. For achieving this mapping, whenever user marked an…

mehul bisht
- 682
- 5
- 15
2
votes
1 answer
Paging3 - How to do Reverse Pagination in Chat App
I am recently migrate to Paging3. However, I noticed that most of the tutorials and guides are mainly on normal pagination (from top to bottom).
I need to implement the REVERSE pagination as user scroll to top boundary, will load for page 2,3,4..
Is…

Teo
- 876
- 9
- 22
2
votes
1 answer
Android Paging 3 how do we sync data in background?
As per This Android Sample using Paging-3 with RemoteMediator load function only triggers when then is no more data available, but in Realtime use-cases most of the time list might be updated. So how can we sync that data in background as well as…

Abhishek Singh
- 9,008
- 5
- 28
- 53
2
votes
1 answer
Paging 3 - How to handle old APPEND RemoteMediator requests that come trough since beta01?
Since version beta01 of Paging 3, when refreshing the PagingData from a RemoteMediator, it sometimes happens that the old APPEND request from the previous generation is still executed after the refresh has completed. This seems to be expected…

Florian Walther
- 6,237
- 5
- 46
- 104
2
votes
2 answers
Jetpack Paging3 RemoteMediator returns same PagingSatate on #load append
I'm following this codelab to build an paging3 app with github API and a local DB. While the first 2 pages load fine, the mediator hits a loop when trying to load the 3rd page when scrolling to bottom - the same PagingState is passed to load()…

Arrow Cen
- 733
- 1
- 8
- 22
2
votes
1 answer
Android Paging 3 and RemoteMediator requests for list while user doesn't reached to bottom of the list
I was working with Android Paging 3 as you can see in https://developer.android.com/topic/libraries/architecture/paging/v3-network-db.
When I run the app RemoteMediator requests server to get List until there is nothing on the server.
The point is…

HamidReza RTM
- 79
- 1
- 7
2
votes
1 answer
Can I use Paging3 library for APIs without 'page=number' query?
I was wondering can I use paging3 library for API's that does not support 'page=RANDOM_NUMBER' in their queries? For example I have an API in which I can add custom query like 'number=50' and it will display 50 items as a result. I'm confused that I…

StefanJo
- 275
- 3
- 13
1
vote
2 answers
Migrate old code of paging3 with lazyColumn
In this demo app, I've implemented paging3 with jetpack compose, but in ListContent I got this error after updating the all dependencies to the latest version, I try to pass items and the key as unsplashImage.id it's look the lazyColumn in newer…

Dr Mido
- 2,414
- 4
- 32
- 72
1
vote
0 answers
Prevent scrolling to the top of list when item is selected/unselected in pagingAdapter, paging 3 library
In my viewModel, I collect a flow
viewModelScope.launch {
repository.getMessagesStream(project).cachedIn(viewModelScope).collectLatest {
_uiState.value = UiState.Content(it)
}
}
and submit it to adapter…

Don Louis
- 61
- 1
- 7
1
vote
0 answers
How to handle LoadType.Prepend in android Paging 3?
I'm trying to create a timeline list similar to a Twitter client using Android Paging 3 and Room library, but I'm facing some issues.
According to the loadType in the Paging RemoteMediator, it can be divided into three…

Afterglow
- 345
- 4
- 12
1
vote
1 answer
android paging 3 headers
I am using paging 3 library for get objects, and I need add some additional elements to top of list
I can do this by calling
pagingData.insertHeaderItem(...).insertHeaderItem(...).insertHeaderItem(...) etc
but I need populate header items from list:…

Tester77
- 13
- 3