简体   繁体   English

滚动到顶部时android listview更新列表

[英]android listview update list when scrolling past the top

I'm wondering how to achieve the nice scroll past top functionality, that then updates the contents of the listview. 我想知道如何实现超越顶部功能的良好滚动,然后更新列表视图的内容。

Do I have to do a custom ListView or is there some kind of built-in functionality? 我必须做一个自定义ListView还是有某种内置功能?

Thanks 谢谢

There is no such functionality out of the box on Android. Android上没有开箱即用的此类功能。 However there are some implementations of the "Pull to Refresh" feature on Internet. 但是,Internet上有一些“拉动刷新”功能的实现。 You can try code from Chris Banes: Pull To Refresh 您可以尝试使用Chris Banes的代码: Pull To Refresh

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM