Read this in other languages: 繁體中文
Android Infinite List - Combining RecyclerView and Android Paging Library
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
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
Do: Use RecyclerView’s absolute position to decide data placement