Endless Scrolling for Paginated APIs as shown in : Google Design - Progress Activity Behavior which has the following components:
- Endless Scroll Listener for Recycler Views
- concrete class implements
loadMore(pageNumber)
to signal the API to load more data
- List Adapter which shows:
- Empty View when given an empty Item List (TextView)
- Progress View when we are currently loading (ProgressBar)
addAll(...)
to append data to the end of the listsetIsAppending(boolean)
for signaling the start/end of data loading
Resources: