Questions tagged [android-paging-library]
189 questions
1
vote
2 answers
PagingSource from paging library 3 with callback as result
Currently, I am trying to migrate to the new paging 3 library of Android, but if I see it right, I can't :(
I'm using AWS Amplify as my backend data source and want to include a query into the new load function of the PaginSource class from the…

Ahmet K
- 713
- 18
- 42
1
vote
1 answer
Paging 3 - Why does my retry footer not call my PagingSource's load method?
I've implemented Paging 3 into my app following a codelab and added a footer with a retry button via withLoadStateHeaderAndFooter:
recycler_view_results.adapter = adapter.withLoadStateHeaderAndFooter(
header = UnsplashLoadStateAdapter {…

Florian Walther
- 6,237
- 5
- 46
- 104
1
vote
1 answer
Android paging library 3 how to load from room first instead of waiting for remote response using RemoteMediator
I implemented a recycler view adapter using Android paging library 3 with Room and RemoteMediator, but my problem is that, the list takes a little while to load during initial load. If I removed the RemoteMediator with just data source from Room,…

yao
- 293
- 2
- 11
1
vote
1 answer
Android Paging 3 Library - Update 1st page VH with next loads
With Paging 3 Library, is it possible to update a ViewHolder of the 1st page when the 2nd page loads, instead of inserting new items ? My displayed data is grouped by date (nested RecyclerView), and the 2nd load can sometimes contain items dated…

Rafi Panoyan
- 822
- 9
- 21
1
vote
1 answer
Load item in recyclerview only after button click using paging library
I am using paging library for loading data in recyclerview.It loads data as soon as the view is created.I need to retrict that and need to make the request and load the data ony after clicking the button.

Saravana
- 81
- 1
- 8
1
vote
0 answers
Android Paging Library scrolls list to the top while invalidating
I am new to the paging libray, whenever i was invalidating the data source, paging brings the list to the top. I was searching through various blogs they were saying that loadInitial,loadRange should be called from the thread where it was started,…

Stack
- 1,164
- 1
- 13
- 26
1
vote
1 answer
How to remove item from pagedList
Hi i am using mvvm and paging library.
Pagination works perfectly.
i want to remove item from list.
when i try remove item
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.waalapp, PID: 21397
…

Firat
- 43
- 8
1
vote
1 answer
Implemating RecyclerView containing multiple view type with andoid Paging library
My goal is to populate a recycler view with at least two different types of data. First item of the recycler view is a another recycler view that can scroll horizontally. The rest of the items can scroll vertically. Data is backed by room database…

rCr_BD
- 11
- 3
1
vote
0 answers
Why paging library doesn't update list after server response?
I am trying implement Android jetpack's paging library with Kotlin Coroutines and Retrofit.
After debugging I found out that observation doesn't invoke on success of server response.
Am I missing something to have complete implementation?
This is my…

Tigran Babajanyan
- 1,967
- 1
- 22
- 41
1
vote
1 answer
Android Paging Library - PositionalDataSource issue
I can get a total number of records from the server, so I am using PositionalDataSource for Network call. Everything works well but one problem: even if I don't scroll, the paging library continues fetching all the data from the server. How to solve…

sj.94
- 123
- 1
- 5
1
vote
2 answers
Paging library: Jumping list items + always same data at the end
I am trying to implement an infinite list with the Paging library, MVVM and LiveData.
In my View (in my case my fragment) I ask for data from the ViewModel and observe the changes:
override fun onViewCreated(view: View, savedInstanceState: Bundle?)…

Vancore
- 657
- 1
- 9
- 18
1
vote
0 answers
Issues with boundaryCallback, how use it correctly?
I study functionality paging library from two source. I found simple way to do it with boundaryCallback, but i am confused.
Which method will be called first on main thread among: boundaryCallback method or Rx observer method ?
Because we have two…

Rustam
- 81
- 6
1
vote
1 answer
The RecyclerView list refresh incorretly when using Paging library
I using the Paging library in my project.
In Activity, an observer observes the data that the Room library return, when the Room's data changes, the UI update.
And when I scroll to the end of the RecyclerView, the Paging library starts to load…

and1990
- 55
- 1
- 9
1
vote
0 answers
Paged list scrolls down to some page after multiple DB update operations
I am using Paging with Room to display data from my DB in to the Recycler view.
Similar to this paging codelab https://github.com/googlecodelabs/android-paging
I added a delete operation which deletes given item and some other item at a random…

Nitesh Tarani
- 866
- 8
- 6
1
vote
0 answers
How to continue sending requests to server to get next items in loadAfter() even though list being passed to callback is empty?
I am using paging library to handle the pagination.
Here is my DataSource class where requests are sent to server.
class HistoryDataSource() : PageKeyedDataSource() {
override fun loadInitial(
params:…

Azizjon Kholmatov
- 1,136
- 1
- 13
- 26