How to detect end of list when scrolling and trigger loading of more data from a WEB request into a ListView
If you are loading data from a WEB server and the list is huge, then the practical solution would be to load a certain amount and if the user scrolls to the end of the list, load some more and keep going until you load the full list
You can add paging listener to your ListView: 1. Implement
AbsListView.OnScrollListener
, for example you can createabstract class
InfiniteListViewPaging
And then in your Activity(or Fragment), when initialize ListView set