84669 personnes étudient
152542 personnes étudient
20005 personnes étudient
5487 personnes étudient
7821 personnes étudient
359900 personnes étudient
3350 personnes étudient
180660 personnes étudient
48569 personnes étudient
18603 personnes étudient
40936 personnes étudient
1549 personnes étudient
1183 personnes étudient
32909 personnes étudient
需要实现一个下来刷新,上滑加载更多的列表,我看到官方有个 SwipeRefreshLayout,但是它只能实现下拉刷新,没有上滑加载更多的功能。在 github 上看到了一些开源的 libs,但是基本都处于无人维护的状态。我的问题:
github 上的相关 libs 基本都无人维护,是因为现在有什么很简单的方式可实现相关的功能了吗?
请大家说说自己都是如何实现这样的功能的,或者有什么好用的开源库推荐一下。
人生最曼妙的风景,竟是内心的淡定与从容!
https://github.com/Aspsine/SwipeToLoadLayout这个轮子应该符合你的要求
https://segmentfault.com/a/1190000004292874 你可以自己查一查啊
对于ListView实现上拉刷新,简单的就是通过addFooterView()添加上拉加载的View,通过设置View的gone与visible来实现显隐。
ListView
addFooterView()
View
gone
visible
你确定?Github 刷新控件开源框架
现在建议你搜索RecycerView
RecycerView
添加footerView
现在基本上不怎么用Listview了,换Recyclerview ,更加灵活,推荐一个别人写的框架XRecyclerView
萌新来答一发,我平时都是用pulltorefresh做下拉和上滑刷新的,是不是这个库现在没人用了?
https://github.com/android-cjj/Android-MaterialRefreshLayout诺。你可以看看这个。还有。。。不是没人维护。。。而是没啥可维护的。。。就那么点逻辑。。。
https://github.com/Aspsine/SwipeToLoadLayout
这个轮子应该符合你的要求
https://segmentfault.com/a/1190000004292874 你可以自己查一查啊
对于
ListView
实现上拉刷新,简单的就是通过addFooterView()
添加上拉加载的View
,通过设置View
的gone
与visible
来实现显隐。你确定?
Github 刷新控件开源框架
现在建议你搜索
RecycerView
添加footerView
现在基本上不怎么用Listview了,换Recyclerview ,更加灵活,推荐一个别人写的框架XRecyclerView
萌新来答一发,我平时都是用pulltorefresh做下拉和上滑刷新的,是不是这个库现在没人用了?
https://github.com/android-cjj/Android-MaterialRefreshLayout
诺。你可以看看这个。
还有。。。不是没人维护。。。而是没啥可维护的。。。就那么点逻辑。。。