Android 在滚动结束时加载列表视图
我想实现一个列表视图加载一定数量的视图的功能,但在滚动结束时,它在该视图中有一个微调器,当它加载更多视图时,
官方 android twitter 应用程序有这样的东西,它显示你旧的来自时间线的消息,但在列表底部,运行微调器后它将加载更多消息。当这个线程发生时,你仍然可以上下滚动而不破坏任何东西,
这将如何完成?洞察力赞赏
I want to implement functionality where a listview loads a set number of views, but at the end of the scrolling it has a spinner in that view, while it loads more views
the official android twitter app has something like this, where it shows you old messages from your timeline but at the bottom of the list it will load more after running a spinner. you can still scroll up and down while this thread is happening without breaking anything
how would this be done? insight appreciated
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为旋转器你的意思是阻挡屏幕?
无论如何,你需要的是很常见的,只需搜索 android 中的 listview 实现
这是我仍然拥有的链接之一:
http://blog.zjor.ru/2010/12 /loading-list-data-asynchronously-in.html
如果你真的想达到那个程度,也请检查这个;)
https://github.com/commonsguy/cwac-endless
i think by spinner u mean blocking screen ?
anyways what u need is pretty common, just search for listview implementation in android
here is one of the link i still had:
http://blog.zjor.ru/2010/12/loading-list-data-asynchronously-in.html
also check this if u really want to go to that extent ;)
https://github.com/commonsguy/cwac-endless
基本上,它可能类似于:
加载一些数据(使用限制)
当您进入最后一个元素的bindView时,更改您的限制(可能通过将光标连接到另一个元素)
basically, it would probably be something like:
Load some data (use a limit)
When you enter the bindView of your last element, change your limit (may be by joining the cursor to another one)