- I do have a paged data source that returns a
PagedData<T>data that is displayed with the pagedAdapter after initial load from SQLite. After some server transactions,I receive a list ofList<T>and after transforming and caching it need to display it. - I know this would be easy with Room db but that's off the table for now.How do I update the initial paged list and create a new pagedList and then push it to the adapter.
- Tried using a map transformation on the new server list to PagingDataObject but it's not possible as far as I know.
list.map { item -> {PagingData<item>}
Is there a way to convert a List<T> to a PagedData<T> while the backing paging source data doesn't use room db
999 Views Asked by cap_muho At
1
There are 1 best solutions below
Related Questions in ANDROID-PAGING
- Integrate LazyPagingItems withing a HorizontalPager
- Get only the records between the fifth and tenth records from a realtime database
- Collect PagingData from UiState object in ViewModel with Compose
- JetPack Compose: Glitch UI, nested LazyRows with pagination
- Paging 3 in android not working on initial load
- Android Compose Paging 3 - Loading all pages at once without scrolling in LazyColumn with network call and no inner scrolls
- Unsplash images fetched using Paging3 are not showing in LazyColumn
- Scroll Position Changed in LazyColumn When Updating Item
- RemoeMediator Youtube Api v3 with Room nextPageToken
- Android Paging library 2 onResult forces fragment to be destroyed
- In jetpack compose, is it possible to use pagination in ExposedDropdownMenu
- Paging 3 Remote Mediator data is not shown?
- How LazyList can notify the pager to load more item using the jetpack paging library?
- Jetpack Compose Paging - using key and contentType
- Migrate old code of paging3 with lazyColumn
Related Questions in PAGEDLIST
- ASP.NET MVC @Html.PagedListPager add validation before calling action method
- Use MudBlazor MudDataGrid ServerData to load paged data from an API
- PagedList Filter
- How to properly load a datagridview with a paginated list;
- Asp.Net Core XpagedList Paging reload the page instead render inside a div
- ASP.NET Core 6 MVC : PagedListPager ValidateAntiForgeryToken
- ASP.NET Core MVC X.PagedList.Mvc.Common is not installed
- Is there any way I can implement pagination using a DataView?
- PagerList error while Creating config File
- How to update a table data in pagination that is part of a view without refreshing the whole page?
- Layout is not loading with PagedListPager and partial view in MVC
- I am beginner in asp.net mvc and getting the following error
- Using Generics Class T in View
- Calling JavaScript function from PagedListPager doesn't work
- Observe not called with LiveData<PagedList> when we start observing the LiveData before LivePagedListBuilder() is called
Related Questions in ANDROID-PAGING-3
- Result in PagingSource (paging library 3, Java)
- Can I Implement Refresh Key With RemoteMediator using room database
- How to make multiple network call efficiently using coroutine
- How can make filter the list in recyclerview with using paging3?
- animation error just after adding paging3 dependency
- Keeping loaded pages in lazyColumn while PagingData invalidated by the Mediator
- Paging 3, no more items loading when reaching the bottom of the list
- How to refresh the screen when the data inserted into room db in kotlin?
- How to Save & Restore the Scroll Position of a LazyColumn using Paging 3 RemoteMediator? Compose
- How to detect Data loads in Paging 3 Room Compose
- An instance of PagingSource was re-used when Pager expected to create a new [Compose+Paging3]
- Compose LazyColumn with Paging3 scrolls up when item updated
- Collect PagingData from UiState object in ViewModel with Compose
- Paging 3 with multiSelect and filtering android
- how to add a single item T in Flow<PagingData<T>> in paging3?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
If you want you can implement your own pagingSource, it's not necessary to use Room. The first half of paging3 codelab shows you exactly how you can achive that. Create your pager like this :
and implement
MyPaginSourcelike this :