开发者

Implement Pagination in ListView in Android

开发者 https://www.devze.com 2023-01-26 09:03 出处:网络
I have implemented a Customised ListView using BaseAdapter and Lazy loading concept to load the images for the list items.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消