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
Pager.liveData method throws unresolved reference error
While using the Paging 3 library, I'm trying to return a LiveData object containing the PagingData from the Repository to the ViewModel. But the Pager.liveData method is throwing an unresolved reference error. Is the .liveData method deprecated in…

Raj Narayanan
- 2,443
- 4
- 24
- 43
0
votes
0 answers
Code is not executed below a collect() method call in ViewModel
Depending on the status of PagingData, I'm updating the loading status in the ViewModel with a sealed class. As I don't know how to check if PagingData is emtpy in the ViewModel, I'm just collecting the PagingData…

Raj Narayanan
- 2,443
- 4
- 24
- 43
0
votes
1 answer
PagingData is empty briefly in Compose UI
I have a LazyColumn that collects a Flow>? from the ViewModel, but the itemCount property of the collected state reports an empty list with 0 items at first briefly before it reports the actual number of items in the…

Raj Narayanan
- 2,443
- 4
- 24
- 43
0
votes
0 answers
LivePagedListBuilder in Paging 3
I am following along with an old Youtube tutorial (which uses Paging 2) in order to learn how to implement an exoPlayer. I have been able to update a lot of the Paging 2 lines given in the video to their corresponding Paging 3 values, but for the…
0
votes
0 answers
Is there any way to convert PagedData to List in android
I am using paging 3 adapter with RemoteMediator. It is giving Flow and I am listing that in ListAdapter.While clicking an item, I need to pass all the items to a viewpager. So what I am doing is passing adapter.snapshot() data to the…

Anu
- 1,303
- 3
- 23
- 38
0
votes
0 answers
How do you implement Android Paging3 library with filter and sort?
I need to filter and/or sort a paged list of data that is coming from the Android paging library. Since the network API call is done in the library's load function, I need to pass my filter and sort params into that function.
My immediate thought…

John
- 5,581
- 6
- 29
- 46
0
votes
1 answer
Android Paging3 is not calling PageDataSource and always getting live data as null
I'm using Android Jetpack Paging3 library for pagination, i have followed the google code lab and some medium blogs for reference. I have implemented pagination as they suggested but it is not working,viewmodel is always returns null value. When i…

YBDevi
- 439
- 5
- 22
0
votes
0 answers
Paging 3 - Recyclerview scrolls itself when first pages are empty
I'm using pagination 3 to load paginated data.
I encountered this problem when the first few pages have empty data. The recyclerview makes an automatic scroll the first items are not visible.
I solved this by scrolling the recyclerview back to the…

NewbornDroid
- 247
- 1
- 3
- 12
0
votes
0 answers
Pagination stops loading data on fast scroll
I am showing media data (10k to 2L thumbnails) in a grid view, issue is observed sometimes(not always) when we do fast scroll on recycler view.
Data fails to load and two scenario happens:
1.No events logged in galleryAdapter.addLoadStateListener…

Abhishek
- 153
- 1
- 2
- 11
0
votes
1 answer
When i resubmit data in paging 3, UI load state does not behave as intended
In my UI I have a recyclerview and a chip group. Each chip represents different calls to retrofit. When i click on a chip, I expect that recyclerview will disappear until new data is loaded. RV disappears indeed, but when it displays again it shows…

ParSerDev
- 1
- 1
0
votes
0 answers
Android paging3 paging stuck after navigation to details fragment and back
I'm trying to implement a list/detail UI in Android by using:
paging3 with cache backed by room db
navigation with navigation-safe-args-gradle-plugin
RxJava3
The list view is generally working fine. I also added refresh functionality by calling…

urbim
- 11
- 2
0
votes
1 answer
Paging 3, Guava/LiveData: liveData onChanged gets called before data is fetched from server
I'm developing an android app for showing a list of products stored in a server. I'm using Paging 3 lib with Guava/LiveData. When debugging, i found that the method onChanged from LiveData is always called before the PagingSource fetch data from…
0
votes
0 answers
Horizontal list fixed at the top and veritical list at below
I am trying to build a ui where the UX is such that the items having images are going to be shown on top with scrolling horizontally and items that doesn't have images go below it scrolling vertically.
For an idea you can refer this : click here…

anshul
- 982
- 1
- 11
- 33
0
votes
0 answers
Fatal Exception: java.util.NoSuchElementException List is empty Error in Paging3 Android library
I am getting this error in firebase crashlytics I cannot get additional info on that also I am not getting where can I put try-catch or if condition guards to mitigate this issue.
Please help with this issue.
Fatal Exception:…

Willey Hute
- 939
- 13
- 18
0
votes
0 answers
Paging 3 adapter which needs coroutine data
I'm using paging 3, with a remote mediator.
My mediator etc all works (tried with hard coded values), but my problem now is that I need to get a users location from a coroutine scope to pass to my adapter.
This is what I'm trying to achieve, but…

Daniel sims
- 53
- 5