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
1 answer
Android paging RemoteMediator not loading any data
I'm trying to setup Paging 3 for a Jetpack Compose app that gets data from both the Retrofit server and the Room database. I created a RemoteMediator to load the data I want. The very first time I ran the app, it showed the list of items correctly.…

Eva
- 4,397
- 5
- 43
- 65
0
votes
1 answer
I am getting the error "Type mismatch: inferred type is List? but List was expected" in PagingSource class
I am getting the error "Type mismatch: inferred type is List? but List was expected" in PagingSource class while trying toimplement Paging 3 in Kotlin.
Below is my PagingSource class
class ptPagingSource(
…

DroidBee
- 75
- 1
- 12
0
votes
1 answer
Transform data streams (pagingData.map()) cannot in PagingData using java
Transform data streams
map red
https://developer.android.com/topic/libraries/architecture/paging/v3-transform#guava-livedata

sasaaibo
- 1
- 1
0
votes
0 answers
Paging Library - Remote Mediator is not working. I only get the first page of the list or flickering. I followed the official documentation
I am trying to implement the Remote Mediator to have an infinite list. It was working properly when I was using the Paging Source but from the moment I started to implement the Remote Mediator, I only get the first page of the list or a constant…
0
votes
1 answer
Android Paging Library 3 - Getting error "Attempt to collect twice from pageEventFlow..." when navigating back to a fragment
In my fragment I'm observing changes to a MutableLiveData stored in a viewModel.
Fragment:
viewModel.list.observe(viewLifecycleOwner) {adapter.submitData(lifecycle, it)}
This code is inside onCreateView
ViewModel:
var list:…

Petermonteer
- 296
- 4
- 17
0
votes
1 answer
RemoteMediator doesn't go next page, paging 3 problem
i have a problem in my Jetpack Compose project.
I want to setup a RemoteMediator, with nextPage and PrevPage but this doesn't work properly, it doesn't show me the next page.
Thing to know, i d'ont have ani "id" key in my Json so i'm using phone…

Mehdi.ncb
- 346
- 3
- 13
0
votes
1 answer
Android paging library without using page number but with explicit next set of ids
Android paging library's PagingSource uses key like
PagingSource
where the first parameter is the page number. What if the server, instead of using a page number, returns (for each request) a list of items ids the client should request…

rysv
- 2,416
- 7
- 30
- 48
0
votes
2 answers
How to transform PagingData into model in collectLatest() in UI
I am having a situation, where once I get pagingData , I need to get additional data from a different API. The second Api requires arguments that are there in first API response. Currently I am collecting in UI Layer in lifecyclescope…

Willey Hute
- 939
- 13
- 18
0
votes
1 answer
Paging 3 library using skip/take
I'm looking into using the paging 3 library for handling paging on my android app. One small hitch is that every single example I find assumes I'd always provide a page number to the API when my company uses skip/take for our APIs as does a few…

Eman
- 1,093
- 2
- 26
- 49
0
votes
1 answer
Android Paging 3 with LoadStateAdapter - Issue of Screen flickering and jumping when new pages are loaded on scrolling
I have implemented Paging 3 with RemoteMediator.
And also have a LoadStateAdapter.
Initially, I was experiencing flickers, glitches and jumps when scrolling pages.
This answer worked to resolve the issue…

Smirky
- 187
- 2
- 9
0
votes
0 answers
Number of item submit in PagingDataAdapter
How to get number of items submitted to PagingDataAdapter
I have to display a RecyclerView with multiple viewType as Start, Middle and End RecyclerView.ViewHolder
Start and End ViewHolder is round where as inner items are using…

Taimoor Khan
- 541
- 4
- 20
0
votes
1 answer
Paging3 with ViewPager not working (where pages use the same type of PagingSource)
I'm trying to use Paging3 with ViewPager in a project, but something strange is happening. I think it is due to the fact that each page uses the same type of PagingSource.
Here's how the page is structured:
Main Fragment
View Pager
Cars Fragment…

Augusto Carmo
- 4,386
- 2
- 28
- 61
0
votes
1 answer
Paging 3 Compose :insertSeparators not working as expected
I'm trying to insert separators to my list using the paging 3 compose library however, insertSeparators doesn't seem to indicate when we are at the beginning or end. My expectations are that before will be null at the beginning while after will be…

Jarnojr
- 543
- 1
- 7
- 18
0
votes
0 answers
Сombine 3 LiveData into one with Paging 3
How can I combine 3 LiveData into one, I have a snippet in my project where I need to display the result of 3 different requests, into one RecyclerView,
I read about it, and found out that it is possible to combine three LiveData into one, but I do…

Radin
- 5
- 5
0
votes
1 answer
How to pass MutableLiveData from function to Pager?
I am trying to use my search function with Paging 3. I checked my addQuery() function and my _repoQuery value is not null there when I do a search. But when I try to pass the value to the Pager {}, it is always null. I know that because it always…

Code Poet
- 6,222
- 2
- 29
- 50