search

Home  >  Q&A  >  body text

Android ListView 如何实现上滑加载更多?

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

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

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

黄舟黄舟2802 days ago580

reply all(7)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 17:25:30

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

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 17:25:30

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

    reply
    0
  • 阿神

    阿神2017-04-17 17:25:30

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

    reply
    0
  • 黄舟

    黄舟2017-04-17 17:25:30

    Are you sure?
    Github refresh control open source framework

    Now it is recommended that you searchRecycerView

    reply
    0
  • 天蓬老师

    天蓬老师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

    reply
    0
  • PHPz

    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?

    reply
    0
  • PHP中文网

    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. . .

    reply
    0
  • Cancelreply