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
Android compose how to paging with Columns inside HorizontalPager?
I want paginated with paging3 libaray in jetpack compose.
I can use the paging3 library on one column. but, i want to use it in multiple columns.
Like LazyColumn in HorizontalPager.
The model used for paging is the same.
ex.
Usermodel
data class…

권오성
- 31
- 4
0
votes
1 answer
How to write unit tests for paging library in android
I need to write unit tests for doing a paginated network request. First I implemented paging library logic to retrieve the data.
I created a data source class and a repository class to get data from the network request.
This is my data source…

Jona
- 263
- 1
- 5
- 18
0
votes
1 answer
Paging library cachedIn() function doesn't work when using function
I am a little bit confused. I am trying to implement pagination 3 library. When I working on it I figured something out. If I use pagedItems() method to collect flow cachedIn() is not working. The function sends new request again after device…

Tunahan
- 194
- 1
- 11
0
votes
1 answer
Use different versions of paging library in the same project
How can I use paging 2 in one module and paging 3 in another module? Now I have paging 3 dependencies pulled into both modules

Денис
- 75
- 5
0
votes
1 answer
PagingDataAdapter submitData slow down UI
I'm using Paging 3 to load a list of items from room database but that slow down my app and UI looks very leggy
Here a look how i am using it
mViewModel.messages.observe(viewLifecycleOwner) {
…

Jignesh Hadiya
- 43
- 1
- 8
0
votes
2 answers
Data From API Has Not Appeared Using Paging 3
I'm learning paging 3, but the data from the API doesn't appear. My code is like below:
interface PokeAPI {
@GET("pokemon")
fun getPokemonList() : Call
@GET("pokemon")
fun getAllPokemon(
@Query("limit") limit:…

Rifqi Ananda
- 1
- 1
0
votes
1 answer
Implement pagination in a vertical grid
I am trying to implement pagination in a vertical grid. I have successfully build it with lazyColumn, but for some reason it does not work for lazyVerticalGrid. Here is my code :
@Composable
fun PagingScreen(viewModel:…

Ali
- 9,800
- 19
- 72
- 152
0
votes
0 answers
Flow is not refreshed when Room database table record is updated
I'm updating the is_in_cart column in the Room Database for the ShoppingListItem when the add-to-shopping-cart Checkbox is clicked. I have a separate LazyColumn items section to list the items in the cart, but when the checkbox is clicked, it is not…

Raj Narayanan
- 2,443
- 4
- 24
- 43
0
votes
0 answers
Paging adapter unable to receive updated data
I am currently building a fragment, and within the fragment contains 2 paging adapter sharing the same data. When I update the data, only one of the paging adapter receives the updated data while the other does not.
On first start up. for reference…

JV17
- 43
- 5
0
votes
0 answers
How to use RemoteMediator while loading from a local cache?
I am implementing a use-case where I am using Paging library to load a list of Books from my remote api. The remote api gives a list of Books for a particular page number.I am adding a simple local cache using a Map data structure to cache the list…

davidvarghese
- 637
- 2
- 10
- 18
0
votes
1 answer
If data in a recycler view item is null then don't display the view holder
I have an API which give me the list of doctors. On it's last page only 1 item is there and other items are null like this:
After this i have used paging library for pagination
my pagingSource code: `
class DocPagingSource(val docRepository:…

Amit Kumar
- 33
- 7
0
votes
1 answer
My paging source always starts from my pageSize instead of 1
I need my start distance at first request to be 1 , then I need it to be 101 and then 201 and so on, my limit should always be 100, but I have tried everything in the PagingConfig and I cannot get this behavior , here are 2 images of what I get and…

SNM
- 5,625
- 9
- 28
- 77
0
votes
4 answers
LazyColumn error: LazyPagingItems required but found List
I'm using the Paging 3 library with LazyColumn and I want to sort the list according to the category of shopping list items. In the code below, LazyColumn complains that it's expecting LazyPagingItems for the items property but…

Raj Narayanan
- 2,443
- 4
- 24
- 43
0
votes
1 answer
Api Call With Paging 3 Not Getting Triggred [ Closed ]
I am trying to make an api call with paging 3 and retrofit. But for some reason the api call is not getting triggered. I checked my code multiple times to find an issue but couldn't understand why am I doing wrong. When I make that api call…

samriddha
- 35
- 6
0
votes
0 answers
How can I use multiple library which use same class?
I have used 2 libraries in my android project.
implementation 'com.firebaseui:firebase-ui-database:8.0.2'
implementation 'androidx.paging:paging-runtime:3.1.1'
And I got this below error:
Duplicate class androidx.lifecycle.ViewModelLazy found in…

Mukesh Roy
- 47
- 5