需要实现一个下来刷新,上滑加载更多的列表,我看到官方有个 SwipeRefreshLayout,但是它只能实现下拉刷新,没有上滑加载更多的功能。在 github 上看到了一些开源的 libs,但是基本都处于无人维护的状态。我的问题:
github 上的相关 libs 基本都无人维护,是因为现在有什么很简单的方式可实现相关的功能了吗?
请大家说说自己都是如何实现这样的功能的,或者有什么好用的开源库推荐一下。
PHP中文网2017-04-17 17:25:30
https://github.com/Aspsine/SwipeToLoadLayout
This wheel should meet your requirements
PHP中文网2017-04-17 17:25:30
https://segmentfault.com/a/1190000004292874 You can check it yourself
阿神2017-04-17 17:25:30
For ListView
实现上拉刷新,简单的就是通过addFooterView()
添加上拉加载的View
,通过设置View
的gone
与visible
to achieve visibility.
黄舟2017-04-17 17:25:30
Are you sure?
Github refresh control open source framework
Now it is recommended that you searchRecycerView
天蓬老师2017-04-17 17:25:30
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
PHPz2017-04-17 17:25:30
A newbie is here to answer. I usually use pulltorefresh for pull-down and swipe-up refreshes. Is this library no longer used?
PHP中文网2017-04-17 17:25:30
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. . .