Questions tagged [android-paging-3]

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

324 questions
1
vote
1 answer

Paging 3 only display data when open fragment for the second time

I'm having an issue using Paging 3 library. I'm using retrofit to get data and paging 3 to display it but what is happening right now is that when I open my fragment for the first time, nothing is displayed on the fragment but when I close this…
HeraGonz
  • 315
  • 1
  • 9
1
vote
1 answer

Android Pager3 last pagedata item null

i met a problem using pager3 library my fetching data flow like below activity(composable) -> viewmodel -> usecase(datatransformation) -> repository(pager) -> remotemediator sorry for [result image][1] link if i assume paging size is N (in above…
1
vote
0 answers

How to remove item using Paging 3 library and Retrofit?

I'm using Paging 3 library for first time and I wanted to know how can I remove an item. I'm using PagingDataAdapter with a RecyclerView and loading data using Retrofit. Maybe it's easy to reach but it's my first time using this library and I have…
HeraGonz
  • 315
  • 1
  • 9
1
vote
1 answer

How to use Paging3 Library to start on the not-first page?

I'm trying to use PagingSource, LazyPagingItems and LazyColumn to display a dataset that extends into the past and the future. I want the initial load of my list to be centered on "today", and allow the user to scroll up to go back in time, down to…
blork
  • 2,150
  • 6
  • 26
  • 45
1
vote
0 answers

LazyList/LazyGrid is not recomposed

I have LazyList/LazyGrid that collects pagingData from room DB. when a column is updated the LazyList is not recomposing. it recomposes when we scroll the list a bit. then the Ui is updated.
1
vote
3 answers

Android Paging Compose: How to scroll to top when any of the queries changed?

I have a list of products. On the ProductsScreen I have some filter options, search box, also filter chips : I'm using paging 3 library for the pagination. I want to scroll to the top when the search query or selected filter chip has changed. Here…
Jarnojr
  • 543
  • 1
  • 7
  • 18
1
vote
0 answers

Using Paging 3 with two different requests so it works bidirectionally

I have this task to do and it seems a bit like it might not be possible, at least with Paging 3 (and I don't know what else can be used for paging besides this library). The thing is, I have this recycler view with some events that are paginated…
dazai
  • 766
  • 4
  • 25
1
vote
0 answers

Room with PagingSource can't load data from center position of the data list

I'm using jetpack Paging3 with Room. I have a feature that I need to load data start from any page from the database. for example: I have a user table. and I defined the user dao like: @Query("SELECT * FROM users ORDER BY id") fun…
robert
  • 540
  • 2
  • 12
1
vote
0 answers

What is the best approach to get data from paging 3 to Nested Recyclerview?

I am implementing an explore screen where I have a parent recycler view that has a title and child recycler view that load movies using paging3 from api and save them to database through Remote Mediator. Now, My question is what is the best approach…
1
vote
1 answer

Paging3 : Recycler View blinking and some items move in position after getting data from RemoteMediator

I am building a movies app which uses Paging3 to page from the network and from a local database at the same time using Remote Mediator. which gets the data from TMDB api and save them to room database. But I am experiencing some blinking or…
1
vote
1 answer

Android Paging 3 jetpack compose how to scroll to top or reset the paging when navigating back

I have been stuck on this for a while now. I have implemented Paging 3 with jetpack compose along with a remote mediator (Room Database) and its working fine. I just want to reset the paging and scroll to the top of the list when I navigate back to…
1
vote
0 answers

How do you properly use paging with only a local database in Android?

I just recently began learning about paging in Android and completed Google's beginner tutorial that shows how to use paging with local code only, not using a Room database. The next tutorial from Google shows how to use paging with data from a…
1
vote
1 answer

paging3 data refresh when user click back button on android compose

I am developing an android app using: Compose Navigation Paging3 The problem is User access "List Fragment" which shows some lists as "ViewPager - HorizontalPager(Compose)" Click one of them, and the user navigates to "Details Fragment". Click…
yoonhok
  • 2,575
  • 2
  • 30
  • 58
1
vote
0 answers

Android. Paging Source return same data from database

I'm trying to retrieve paging data from network and database. For this I use paging 3 library. My problem is that when I start scrolling the list, the requests are sent correctly, but I get incorrect data (the same) from the room database. At the…
1
vote
0 answers

How correctly expose data from PagingSource Paging 3

Lets say we have a api response: { "filters": [ { "id": "1", "name": "Filter1" }, { "id": "2", "name": "Filter2" } ], "selected_filter_id": "1", "data": [ { "": "" }, { "": "" …
Slava
  • 31
  • 3