I have implemented a Customised ListView
using BaseAdapter
and Lazy loading concept to load the images for the list items.
I am working with the RESTFul services . The webservice method defines the no of items in each page(20 items per page) & the total no of pages present(5 pages). Now , I am able to load the first page accordingly .
I need to call the webservice method again to download the next page contents accordingly & display it in the similar way as the first page.
Kindly provide the logic/sample source code on how to implement the pagination if anyone has already implemented.
Also , I have seen in few of the Android applications in the Android market , that the progress dialogue is displayed at the end of the list while loading the items , maybe the 开发者_如何学Csecond page contents. Kindly provide hints if someone has already implemented so.
Kindly provide the logic/sample source code on how to implement the pagination if anyone has already implemented.
See my EndlessAdapter
.
精彩评论