Questions tagged [android-architecture-paging]
7 questions
11
votes
2 answers
Update list items in PagingLibrary w/o using Room (Network only)
I'm using Paging Library to load data from network using ItemKeyedDataSource. After fetching items user can edit them, this updates are done inside in Memory cache (no database like Room is used).
Now since the PagedList itself cannot be updated…

Keivan Esbati
- 3,376
- 1
- 22
- 36
7
votes
4 answers
How can we mutate items loaded using Paging 3 android?
I am loading posts from network and for this i'm using Paging 3, but now problem is that my list items contains Like/Dislike button, suppose Like is clicked then how can i update data for that item without reloading whole dataset?
i have read this…

Kulwinder Singh Rahal
- 527
- 7
- 25
3
votes
0 answers
paging PageKeyedDataSource swipe to refresh calls loadInitial
I was following https://github.com/googlesamples/android-architecture-components/tree/master/PagingWithNetworkSample
I noticed when paging refreshes, swipe to refresh, invalidate() is called and it calls loadInitial which then loads new list. So if…

om252345
- 2,395
- 4
- 29
- 31
1
vote
1 answer
Android Paging library sqlite data storage concern
Over the past days I have been getting comfortable with Android Architecture Components and I've been mostly interested in the Paging Library for handling and displaying lists of data from a remote source.
For the best UX it is better to load data…

Ikiugu
- 667
- 1
- 8
- 16
1
vote
0 answers
PagedList.BoundaryCallback is not renewed in DB + Network
I'm new to Android Paging (Don't shoot me), and I'm trying to implement Paging with Database and Network like android sample.
I am observing getPagedList() of my ViewModel in the fragment, and there I submit the list to my adapter, like this:
public…

e.y66
- 99
- 10
0
votes
1 answer
LiveData: Cannot invoke observeForever on a background thread after AndroidX refactor
After refactoring to androidx (via AndroidStudio) my PageKeyedDataSource from the Pagination Libary breaks because of this error:
java.lang.IllegalStateException: Cannot invoke observeForever on a background thread
Code:
class…

Yannick
- 4,833
- 8
- 38
- 63
0
votes
1 answer
Android architecture components paging DataSource.Factory error
I'm trying to make my DataSource.Factory class, but I get an error when trying to return my PageKeyedDataSource implementation.
class SubredditPageKeyedDataSource(private val service: LedditService,
private val…

SpecialSnowflake
- 945
- 4
- 16
- 32