一:实现区别下拉刷新和上拉加载

参考资料:http://blog.csdn.net/losetowin/article/details/18261389

在PullToRefresh的类库的com.handmark.pulltorefresh.library包下,打开PullToRefreshBase.java,在这个类的最后面添加代码。注意,需要重新添加library库。

//根据下拉和上拉显示的布局的可见状态类区分上拉还是下拉,然后执行相应操作
    public boolean isHeaderShown() {
        return getHeaderLayout().isShown();
    }
    
    public boolean isFooterShown() {
        return getFooterLayout().isShown();
    }
View Code

相关文章:

  • 2021-09-27
  • 2021-09-08
  • 2022-02-17
  • 2022-12-23
  • 2022-01-22
  • 2021-06-18
猜你喜欢
  • 2022-03-07
  • 2021-04-17
  • 2021-09-11
  • 2022-12-23
  • 2021-06-20
  • 2022-12-23
相关资源
相似解决方案