@Override public boolean onBGARefreshLayoutBeginLoadingMore(BGARefreshLayout refreshLayout) { switch (mContentVp.getCurrentItem()) { case 0: return mRecyclerViewFragment.onBGARefreshLayoutBeginLoadingMore(refreshLayout); case 1: return mListViewFragment.onBGARefreshLayoutBeginLoadingMore(refreshLayout); case 2: return mScrollViewFragment.onBGARefreshLayoutBeginLoadingMore(refreshLayout); case 3: return mWebViewFragment.onBGARefreshLayoutBeginLoadingMore(refreshLayout); default: return false; } }
@Override public void onBGARefreshLayoutBeginRefreshing(BGARefreshLayout refreshLayout) { switch (mContentVp.getCurrentItem()) { case 0: mRecyclerViewFragment.onBGARefreshLayoutBeginRefreshing(refreshLayout); break; case 1: mListViewFragment.onBGARefreshLayoutBeginRefreshing(refreshLayout); break; case 2: mScrollViewFragment.onBGARefreshLayoutBeginRefreshing(refreshLayout); break; case 3: mWebViewFragment.onBGARefreshLayoutBeginRefreshing(refreshLayout); break; } }