Skip to content Skip to sidebar Skip to footer

How To Load More Data In Recyclerview On Scroll Using Json Api

I am implementing pagination in recyclerview on scroll. I am fetching data from JSON API. Below is the code of Fragment Class. 1st page is loading successfully in recyclerview, but

Solution 1:

Whenever calling getApi method sends new response and adding data again to the list, but that list not sent to adapter to update new list. Instead of like this leadsAdapter = new LeadsAdapter(getContext(), rowsArrayList, recyclerView); Create a method in adapter with list as a parameter and pass the arraylist to method and notify when new data response.


Post a Comment for "How To Load More Data In Recyclerview On Scroll Using Json Api"