使用SwiperefreshLayout上拉刷新

时间:2015-07-10 11:57:09

标签: android swiperefreshlayout

我正在使用ListView刷新SwiperefreshLayout。我已经完成了Pull Down,但是我没有得到如何将它用于Pull Up。是否有人使用x <- rep(0, length(df1[, 1]) #initialise for(r1 in 1:length(df1[, 1])){ for(r2 in 1:length(df2[, 1])){ if(identical(df1[r1,], df2[r2,])){ x[r1] <- r2 break } } } 或任何具有最佳链接的人实现Pull Up以供参考..

2 个答案:

答案 0 :(得分:1)

Swipe to refresh

浏览此链接...

答案 1 :(得分:0)

使用此更改刷新模式,

    mPullRefreshListView.setMode(Mode.BOTH) // which ever you want



    mSwipeRefreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {
      @Override
      public void onRefresh() {

          ...
          // on refresh goes here.
      }
  }

检查此link for more info