Android:ListView,最后一项 – 显示更多

我有一个问题,我想在列表中显示20个项目.
但有一个问题:如果用户向下滚动到列表的底部,则会有一个项目显示:“显示更多项目”,当用户点击它时,更多项目将添加到列表中.

我的问题是如何有一个最后一个项目,有不同的风格和看起来不同的东西是多么可能:并做不同的事情,(我认为这在QuickSearchBox中使用)

解决方法

我建议你 commonswarecwac-endless.

cwac-endless: Provides the EndlessAdapter,a wrapper for an existing listadapter that adds “endless list” capability. When the user scrolls to the bottom of the list,if there is more data for this list to be retrieved,your code gets invoked in a background thread to fetch the new rows,which then get seamlessly attached to the bottom of the list.

相关文章

Android性能优化——之控件的优化 前面讲了图像的优化,接下...
前言 上一篇已经讲了如何实现textView中粗字体效果,里面主要...
最近项目重构,涉及到了数据库和文件下载,发现GreenDao这个...
WebView加载页面的两种方式 一、加载网络页面 加载网络页面,...
给APP全局设置字体主要分为两个方面来介绍 一、给原生界面设...
前言 最近UI大牛出了一版新的效果图,按照IOS的效果做的,页...