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
4
votes
0 answers
Fetching All Images From Gallery using Paging3 library
I am trying to get all the Images from Gallery and displaying them in a recycler view. To fetch images I am using Paging 3 Library. Everything is working fine when I am scrolling from Top to Bottom I am getting all the images with pagination but…

markhor1999
- 83
- 1
- 6
4
votes
2 answers
How To Test PagingData From Paging 3
My ViewModel has a method which returns a flow of PagingData. In my app, the data is fetched from the remote server, which is then saved to Room (the single source of truth):
fun getChocolates(): Flow> {
val…

rabyunghwa
- 178
- 3
- 24
4
votes
0 answers
Paging3 without RecyclerView
I know that the Paging3 library was designed to work together with RecyclerView, however I have a use case where the paged results are also presented on a map. If you look inside the PagingDataAdapter class, you will notice that it is backed by…

Adonias Alcântara
- 363
- 2
- 9
3
votes
0 answers
Remember LazyColumn scrolling position for collecting data via Paging3 library
Is it even possible to remember LazyColumn scrolling position in such a case?
@Composable
fun ScreenComposable(state: State) {
val stateValue = state.value
val lazyItems: LazyPagingItems- =…

PrzemekTom
- 1,328
- 1
- 13
- 34
3
votes
1 answer
Android. How to use pagination with clean architecture?
I'm writing application with MVVM and clean architecture. On one of the screens I need to implement RecyclerView with pagination. I am going to use the library Paging3.
Android Developer recommends using PagingSource and RemoteMediator in repository…

testivanivan
- 967
- 13
- 36
3
votes
1 answer
Pagination is not working after refresh() is called. [Paging 3 Library]
I'm currently working with paging 3 library. I'm able to populate the list and pagination is working as expected. But when I call adapter.refresh() method twice by using pull to refresh, the pagination stops working.
I have gone through the…

Akshan
- 31
- 3
3
votes
1 answer
How to handle result of paging data in compose and implement header and footer load states?
In View system there are official examples how to implement loading states and adding header and footer item to the…

user924
- 8,146
- 7
- 57
- 139
3
votes
1 answer
Android paging 3 jumping and placeholder example
I’ve been searching a lot but couldn’t find an example how to jump from a position in a loaded page to another position in another page which hasn’t been loaded and how to implement placeholders.
I am aware of ‘jumpThreshold’ and…

H.Nguyen
- 1,621
- 5
- 19
- 31
3
votes
1 answer
auto pagination if using recyclerview inside NestedSrollView with Paging 3?
I'm using recyclerview inside nestedscrollview to scroll in the full page size but that ruined the pagination functionality because it auto loads all the pages without user scrolling.
here is my xml layout

Amin
- 463
- 2
- 11
- 29
3
votes
0 answers
PagingDataAdapter submitData takes time to show data on Recyclerview
I'm using Paging 3 (androidx.paging:paging-runtime-ktx:3.1.0) to load a list of items and it works fine except there is a delay in showing items on recyclerview after hiding a progress loading and after debug the steps I found the delay comes from…

Amin
- 463
- 2
- 11
- 29
3
votes
1 answer
How can I correctly use custom PagingSource with PagingDataAdapter, on local data?
The Problem
I have locally-generated data that I need to display in a RecyclerView. I tried to use a custom PagingSource with PagingDataAdapter to reduce the amount of data in memory, but I get visual effects when I invalidate the data, for example…

RedGlyph
- 11,309
- 6
- 37
- 49
3
votes
2 answers
Paging with Jetpack Compose cause infinite retrofit calls
I am trying to implement paging for the TMDB API using paging3 and paging-compose.
Here the source of truth is database and api calls are handled by Remote-mediator.
Repository:
class Repository @Inject constructor(
val database: Database,
…

Isac
- 314
- 2
- 15
3
votes
1 answer
Jetpack Compose + Paging3 RemoteMediator propagate errors
I'm trying Jetpack Compose and I've created a simple app to consume the Star Wars API with Ktor, Room, Hilt, Paging3 and Material3.
I can't understand how to propagate any eventual error caught during the data fetch.
AppDatabase.kt
@Database(
…

Valerio
- 3,297
- 3
- 27
- 44
3
votes
0 answers
RecyclerView reload data on activity/frgment re-create(rotate screen)
I am using a android paging library to display a list of data in a fragment. It works, but when i rotate the screen, the list is loaded again instead of get already loaded data.
I did it for this article. What is the problem?
This is my…

Andrey Cherkasov
- 51
- 2
3
votes
0 answers
Android Paging 3 : How to refresh whole data in the paging 3 and after update first item should be visible
I have following scenario:
When I launched the activity I need to load some data.
The activity has refresh button which will load new data from the network. This will be a new list of data which will not match to the initial list.
Now suppose user…

ashish yadav
- 41
- 2