Demo entry 6416076

取消刷新

   

Submitted by anonymous on May 25, 2017 at 16:25
Language: Java. Code size: 432 Bytes.

both对应回调接口

 public interface OnRefreshListener {
        void onPullRefresh();

        void onLoadMoreRefresh();
    }
取消全部动画方法

  public void onLoadComplete(boolean hasMore) {
        mLoadMoreRecyclerViewContainer.loadMoreFinish(hasMore);
        if (mCurrentRefreshMode == REFRESH_FROM_START) {
            if (isRefreshing()) {
                mPtrFrameLayout.refreshComplete();
            }
        }
    }

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).