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
Retreiving sorted data by date with Room and Paging 3
When I get the list that is stored I get this pattern
["12/08/2021", "12/07/2021", "12/08/2020", "11/07/2021", "11/05/2021"]
As you see the month and day are being sorted, but it looks like the year is not being read.
below is Query that I'm using…

John De la cruz
- 86
- 5
0
votes
0 answers
I am unable to use to sort a PagingData - Paging3 Android kotlin
In my project I have successfully implemented Paging3 library. The data is showing in UI through my MembersPagingAdapter class.
What I am unable to do it is to sort the list of members alphabetically as per name/username, Or,
as per registration…

Ankush
- 175
- 1
- 12
0
votes
0 answers
Paging 3 library using kotlin
I am working on Paging 3 library and facing a issue which is like in my PagingSource class my load(params: LoadParams) returns the value before I get the response from API.
I have added callback for the API response but still I am facing the same…

primo
- 1,340
- 3
- 12
- 40
0
votes
2 answers
Jetpack Compose Paging3 invoke append to load next page
How do I invoke to load the next page to append my database when I reached the last item on
val lazyPagingItems = viewModel.getAllItems().collectAsLazyPagingItems()

Arthur
- 318
- 1
- 4
- 11
0
votes
1 answer
How to call different api resource from paging source or remote mediator Kotlin
Hey I want to call two different api for my Paging Library 3. I want to ask what is best suit for me to use Paging Source or Remote Mediator?. What is the use case of both? Can someone please explain me.
For 1st api call only for single…

Kotlin Learner
- 3,995
- 6
- 47
- 127
0
votes
1 answer
Android paging flowable leaking viewmodel and fragment
I'm using the paging 3 android library with the RxJava source. I have two fragments, the first displays a list of images in a grid, when an image is clicked the second fragment is shown and it displays the image in fullscreen and has a ViewPager to…

Jorge Guillermo Negrete
- 629
- 1
- 7
- 11
0
votes
2 answers
Jetpack Compose Paging 3 Auto scroll to the top
I am using page 3, when displaying data, I found that if the page switches and returns to the bottom page, the data will automatically roll to the top.
If there are two items, it will automatically scroll to the top, if there is one item, there is…

gaohomway
- 2,132
- 1
- 20
- 37
0
votes
2 answers
How to make an inline function remove itself when its being used as a listener in kotlin
I have hit a wall with this one and I can't find any question with a solution for this here in SO.
I am using a PagingAdapter method, from Google's Paging library, that receives an inline function as a listener:
fun…

Shadow
- 4,168
- 5
- 41
- 72
0
votes
1 answer
How to avoid duplicate items in PagingAdapter?
I have implemented paging3 for my android project. To avoid duplicated items, I created a DiffUtil.ItemCallback object as follow;
companion object {
val diffCallback = object : DiffUtil.ItemCallback() {
override fun…

Hakan Erbaş
- 139
- 1
- 10
0
votes
0 answers
Android Paging3 with RemoteMediator: items appear in the middle of the list or above visible ones, looks messy
I have a list of items from API. I'm using Paging3 with RemoteMedatior to maintain network with local caching in database using Room. My issue is when data is loading recyclerView looks messy and glitchy, items appear in the middle of the list and…

puszkinowski
- 11
- 2
0
votes
0 answers
Data is not displayed in list paginated with Android Paging3 using RxJava
I try to implement Paging 3 with Rx in my sample Android project. Data is fetched from remote, and comes to PagingSource. But it seems, that it doesn't proceed further. When debugging ViewModel and Activity related parts, PagingData is empty. Here…

Victor
- 147
- 1
- 1
- 8
0
votes
1 answer
Error While using Paging 3 in FireStore Ui Recycler Paging Adapter: PagingConfig cannot be converted to Config
/*--- Load News Feed in Recycler View ---*/
private void loadNewsFeed(){
CollectionReference collectionReference = firebaseFirestore.collection("News Feed");
query = collectionReference
.orderBy("newsFeedId",…

Pawan Kumar
- 211
- 2
- 12
0
votes
0 answers
RecyclerView.setAdapter(adapter); didn't work with Firestore paging Adapter
I'm using the a Firestore Paging Adapter on my Android app but when i try to set the adapter for my recyclerview, it's says that it need an Adapter and not a Firestore Paging Adapter. Do you have any solutions ?
package fr.arikkusan.xxx.UI;
import…

Arikkisan
- 11
- 3
0
votes
1 answer
How does Paging3 know which PagingSourcer/Pager to use when fetching data?
I've been working with Paging3, but something in particular that has been bothering me is that I can't figure out how the library is deciding which Pager to ask for more data. This is fine since I'm only paging one set of data right now, but in the…

Ann
- 11
- 1
0
votes
0 answers
Android Page not refresh using adapter.refresh() in RxPagingSource
DataSource extends RxPagingSource
@NotNull
@Override
public Single> loadSingle(@NotNull LoadParams params) {
nextPageNumber = params.getKey();
if (nextPageNumber == null)…

Vijay Chaudhary
- 228
- 2
- 12