Native Shopify Mobile App with 20 new features
Kickstart your hyperlocal marketplace in Corona pandemic with a starter guide
Android App Development
iOS App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 126.96.36.199 release ready!
Owner and Founder. Opencart
The idea here is to find the position of the last visible item. If that position is equal to the last item of your dataset, then you should trigger a reload.
There are several methods to accomplish it. I am using addOnScrollListener() with my Recycler View when we scrolling our screen the Listener is fired. then we find the last item of recycler view with the help of our Layout Manager.
Here is the code for Listener-
Note- If you are load data from the server then take care, recycler view work with own Thread and server Thread do own work without affecting each other. so control loading with the following condition –
Your email address will not be published. Required fields are marked*
Save my name email and website in this browser for the next time I comment.
Be the first to comment.
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.