T
T
TikTak12362019-11-16 20:17:43
Android
TikTak1236, 2019-11-16 20:17:43

How to show the first 10 items from the cache in the Paging Library while the data is being loaded from the Internet?

I am new to Paging library. I always store the first 10 elements of the list in the cache. I use Preferences as a cache and use Gson to save data there. The first time the list is shown while the data is being loaded from the internet, I want to show the data from the cache. How can i do this?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question