android-paging Questions

2

Solved

Paging Library is amazing. But I find that lacks this features: Dispatch a view when data is loading. Assuming I am extending PageKeyedDataSource: a view on top when loadInitial is called, a view...
Supersensible asked 9/1, 2018 at 17:29

0

I'm exploring the Paging library of the Architecture Components suite. My question refers to implementing the "load more" view (spinner) when using the constructs provided by Paging. I would norm...

1

Android Architecture Component now introduced Paging Library, which is great. According to the official demo The DataSource.Factory now supports map and mapByPage methods, which means we may tran...

0

In my Android app i'm showing data in a RecyclerView using Room and the Paging library. My implementation is quite similar to the example in the AsyncPagedListDiffer docs. The flow is the followi...
Noncombatant asked 11/10, 2018 at 17:44

1

Solved

Which is the best way to update a single element when using the new paging library? Let's say we have the Paging with network google sample using the PageKeyedSubredditDataSource. Imagine we want ...

1

I have a problem where the method onItemAtEndLoaded is called immediately after onZeroItemsLoaded, the behavior should be only when I finish the scroll. Do you have any idea of what is happening. I...
Stylolite asked 31/7, 2018 at 22:31

0

Using the Android Architecture Components paging library, I want to render placeholder views when the DataSource is loading new items that are already in view. According to the documentation, thi...
Streak asked 3/9, 2018 at 15:33

2

All examples of the new paging library have been with Room library and Room creates a Data Source for us. In my own case, I need to create my custom data source. Here is a method in my view model ...
Rosauraroscius asked 7/10, 2017 at 22:31

1

Solved

I've been experimenting with PagedListAdapter and can't figure out how to restore adapters position correctly. Last attempt was to save lastKey from current list. override fun onSaveInstanceState...
Marchak asked 3/8, 2018 at 8:56

1

Solved

I'm using Paging library to load date directly from network. Do I have to implement logic to stop fetching data? In my case, that can be when received item count is lower than page size. Currently ...

1

Solved

Iʼm fairly new to developing Android apps and Iʼm trying to do everything “the right way.” So right now, Iʼm implementing the new Android Paging Library into my project, where I need to load a list...

1

I was trying the paging library from Android Architecture Component but I have doubts integrating it in a clean architecture based project. Generally I have 3 modules: Main Module (App) Data Mod...

1

Solved

I am using the Android Arch PagedListAdapter class. The issue I have run into is that since my app is a chat style app, I need to scroll to position 0 when an item is inserted. But the PagedListAda...
Sampler asked 22/6, 2018 at 4:20

1

I'm making a TO-DO list app and I want to have that fancy list, where tasks are grouped under a header with date (similar to what Splen-DO has). I am using Android Paging library (with RecyclerView...
Galliot asked 13/5, 2018 at 12:3

1

I have written this simple example to test paging library and observe changes to PagedList using LiveData but it notifies the observer only once, when the LiveData<PagedList<Integer>> o...

2

My app is using Android's Architecture components library and is displaying a list of items fetched from a paginated REST api with an infinite scroll effect. What I'm trying to do is to use the Pa...

© 2022 - 2024 — McMap. All rights reserved.