实现分页中的ListView在Android中 [英] Implement Pagination in ListView in Android

查看:109
本文介绍了实现分页中的ListView在Android中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直使用 BaseAdapter 和延迟加载的概念来加载列表项的图像实施了专项的ListView 。 我的工作与RESTful服务。 WebService的方法定义了每个页面的项目(20个项目每页)及无;页面present总没有(5页)。现在,我能够相应地将第一页。 我需要再次调用Web服务的方法和相应的功放下载下一个页面内容;以类似的方式与第一页显示它。 请提供关于如何实现分页,如果有人已经实现的逻辑/示例源$ C ​​$ C。

另外,我已经看到少数在Android市场的Andr​​oid应用的,即在装入物品,说不定第二页内容的进展对话显示在列表的末尾。 请提供线索,如果有人已经实现左右。

亲切问候,

CB

解决方案
  

请提供关于如何实现分页,如果有人已经实现的逻辑/示例源$ C ​​$ C。

请参阅我的 EndlessAdapter

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.

Warm Regards,

CB

解决方案

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

See my EndlessAdapter.

这篇关于实现分页中的ListView在Android中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆