I am using The Movie Database Api to load Tv Shows in my recyclerview. I am able to load the views in my recycler view. The url i am using is https://api.themoviedb.org/3/tv/airing_today?api_key=MY_API_KEY&page=1
It loads all the views from page 1 in my recyclerview. What i want is as soon as user reaches end of recyclerview it should load the next page and so on i.e at the end of recycler view i want to load https://api.themoviedb.org/3/tv/airing_today?api_key=MY_API_KEY&page=2
I know i can do it by adding next and previous button below my recyclerview,but i don't want to do that approach. How to automatically load next page as soon as user reaches end of recycler view. FYI,I am using Retrofit. Please help.