'How to load more items without pages in API in Android recyclerview?

I am trying to add a load more feature in my recyclerview. I followed some tips I found on Stackoverflow but each one requires the existence of pages in the API. In my API there are no pages and that's why I can't figure out how to adjust this code to my recyclerview as there are no pages. Any answer would be appreciated!!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source