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
1
vote
1 answer
Paging 3 + Binding + Room - data not showing on RecyclerView
I am trying to implement Paging 3, Binding, and Room, but it does not show any data on the RecyclerView. Following some code snipped of the different components of the code.
AssetEntity.kt
@Entity(tableName = "tbl_assets")
data class AssetEntity(
…

MarioV
- 108
- 11
1
vote
1 answer
paging3 state always stuck at the end of first page when navigating away
So, i was learning jetpack compose, and trying to make an anime index app which use paging3, pagingcompose,and lazy layout. But, even when i save the lazy state in rememberlazyliststate and rememberlazygridstate, the paging state is always stuck at…

lelestacia
- 201
- 2
- 9
1
vote
1 answer
Migrate to Paging 3
I want to migrate an older PagedListAdapter to PagingDataAdapter, but cant find analogue of onCurrentListChanged method from PagedListAdapter.
How can I implement similar behavior on PagingDataAdapter?

LandMark1919
- 13
- 3
1
vote
1 answer
Use Room + Paging3 + LazyColumn but pagination is not implemented
I have the following code, but I don't think the pagination is implemented.
dao
interface IArticleDao {
@Query(
"""
SELECT * FROM t_article ORDER BY :order DESC
"""
)
fun pagingSource(order: String): PagingSource

SageJustus
- 631
- 3
- 9
1
vote
0 answers
How to switch flow based on condition?
There is query and two filters. When set search filter and query is not empty, need to one flow. When set checked filter need to other flow.
According debug, onClickSearchFilter or onClickCheckedFilter calls with query or filter changed - return new…

Viewed
- 1,159
- 3
- 16
- 43
1
vote
0 answers
I don't know why Android Paging3 with RoomDatabase and Compose return entire data at once
199 messages are currently stored in the My Rooms database.
so I want paging this data with Paging Library.
I followed Android Developer explaination.
but My PagingData emit all of my Message Data at once..
what is the problem..
Dao
@Query("SELECT *…

이응니은
- 45
- 5
1
vote
0 answers
Android architecture: is RemoteMediator a DataSource itself for the repository class?
I'm learning how to implement Paging (Jetpack Paging Library) and how to fetch data from both network and local database.
I have followed Google codelab and learned about the RemoteMediator class, which is very useful for me, because it handle…

JJ86
- 5,055
- 2
- 35
- 64
1
vote
1 answer
Get Room observable list with paging 3
I'm using Paging 3 with a local database using Room, the @Query from Room is the following:
@Query("SELECT * FROM Channel LIMIT :limit OFFSET :offset")
suspend fun getAllChannels(limit: Int, offset: Int): List
Then i get my data in the…

Ameen
- 81
- 8
1
vote
0 answers
Android and Paging 3: Testing my repository that calls Pager
I'm implemented the Paging 3 library and I'd like to test my repository.
I've seen the Paging 3 testing webpage but there's only theory about the repository tests.
My repository looks like this:
class RepositoriesRepositoryImpl @Inject constructor(
…

noloman
- 11,411
- 20
- 82
- 129
1
vote
0 answers
How Paging3's cachedIn(viewModelScope) works in android
Hello I am applying Paging3 to my project. I came across the cachedIn() operator while looking at the Paging3 code, and I have one question.
Android official documentation says that cachedIn() caches loaded data using CoroutineScope. I used…

Yeeun Lee
- 23
- 6
1
vote
0 answers
Paging 3 loads all the data at once without scrolling the RecyclerView
I have an implementation of Paging 3 with network + DB configuration; where the RecyclerView is inside the SwipeRefreshLayout.
I have given the paging config as this.
const val API_RESPONSE_DATA_SIZE = 50
val PAGED_LIST_CONFIG = PagingConfig(
…

Nataraj KR
- 1,001
- 10
- 22
1
vote
1 answer
Android Jetpack Paging3 calling PagingSource with different data
I am making a movie app in which on click of a button of type , It should make an api call with a diffrent sent of data.
Ie whenever the user clicks on Series or Movie button , It should make an API call with that specific parameter.
Since I have…

Saneen K P
- 303
- 1
- 8
1
vote
0 answers
Paging 3 remote mediator not loading after navigation
I am facing some issue with paging 3 remote mediator. Everything works fine until I navigate to some other fragment and get back to the initial screen remote mediator will not load any more data than it initially loaded (i.e. it won't make anymore…

JV17
- 43
- 5
1
vote
0 answers
Paging Library 3 LoadType.Append is never called
I'm using paging library 3 , and it is working fine , but when it comes to the remote mediator , the refresh and prepend are called but LoadType.append is never called , it is only saving the first page , any reason why , Thank you
This is my…

Taki
- 3,290
- 1
- 16
- 41
1
vote
1 answer
SSOT with remote mediator room DB model from different screens
I've been having this issue with how I should have my room DB for almost a week. I have 3 screens on my app - Home Feed, Group Feed, and Profile with user post feed all in chronological order. And a view post screen. The posts made in the group end…

Abhishek AN
- 648
- 7
- 24