Skip to content

Android Paging Library - Displaying an Infinite List of Positive and Negative Page Numbers

Notifications You must be signed in to change notification settings

HankLi0130/PagingDemo

Repository files navigation

Android Paging Library - Displaying an Infinite List of Positive and Negative Page Numbers

Read this in other languages: 繁體中文

Final Result

go up      go down

Detailed Tutorial

Android Infinite List - Combining RecyclerView and Android Paging Library

When to Use Which DataSource?

ItemKeyedDataSource

Do:When keys are continuous for a Data Item in RecyclerView, use the Data’s Key to find the previous or next piece of data

PageKeyedDataSource 

Do: When the data source (from a cloud server or other data source) already has a paging function, use the Key of every page to get data

PositionalDataSource

Do: Use RecyclerView’s absolute position to decide data placement

About

Android Paging Library - Displaying an Infinite List of Positive and Negative Page Numbers

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages