chiranjib
chiranjib

Reputation: 5308

Implement Pagination in ListView in Android

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 second page contents. Kindly provide hints if someone has already implemented so.

Upvotes: 2

Views: 7968

Answers (1)

CommonsWare
CommonsWare

Reputation: 1007544

Kindly provide the logic/sample source code on how to implement the pagination if anyone has already implemented.

See my EndlessAdapter.

Upvotes: 3

Related Questions