Android ListView 如何实现上滑加载更多?
黄舟
黄舟 2017-04-17 17:23:30
0
7
558

需要实现一个下来刷新,上滑加载更多的列表,我看到官方有个 SwipeRefreshLayout,但是它只能实现下拉刷新,没有上滑加载更多的功能。在 github 上看到了一些开源的 libs,但是基本都处于无人维护的状态。我的问题:

  1. github 上的相关 libs 基本都无人维护,是因为现在有什么很简单的方式可实现相关的功能了吗?

  2. 请大家说说自己都是如何实现这样的功能的,或者有什么好用的开源库推荐一下。

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(7)
洪涛

https://github.com/Aspsine/SwipeToLoadLayout
This wheel should meet your requirements

Ty80

https://segmentfault.com/a/1190000004292874 You can check it yourself

阿神

For ListView实现上拉刷新,简单的就是通过addFooterView()添加上拉加载的View,通过设置Viewgonevisible to achieve visibility.

黄舟

Are you sure?
Github refresh control open source framework

Now it is recommended that you searchRecycerView

Peter_Zhu

Add footerView

Basically I don’t use Listview very much now. I have switched to Recyclerview, which is more flexible. I recommend a framework written by others, XRecyclerView

PHPzhong

A newbie is here to answer. I usually use pulltorefresh for pull-down and swipe-up refreshes. Is this library no longer used?

洪涛

https://github.com/android-cjj/Android-MaterialRefreshLayout
No. You can check this out.
Also. . . It's not that no one maintains it. . . But there is nothing to maintain. . . Just a little bit of logic. . .

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template