I am loading a listview from Http server, 20 at a time ,At the end of Listview I a want to load next 20 data from server and this process will continue till
Heiko Rupp's code is the best option for this problem.
The only thing you should do is implement onScrollListener
and in onScroll()
just check if there is an end of list by using the code
boolean loadMore = firstVisibleItem + visibleItemCount >= totalItemCount-1;
if true load your data with regular fashion..
thaks Heiko Rupp for this snippet :)