use of cn.bingoogolapple.refreshlayout.demo.ui.fragment.StickyNavWebViewFragment in project BGARefreshLayout-Android by bingoogolapple.
the class ViewPagerActivity method processLogic.
@Override
protected void processLogic(Bundle savedInstanceState) {
mRefreshLayout.setRefreshViewHolder(new BGANormalRefreshViewHolder(mApp, true));
initBanner();
mFragments = new Fragment[4];
mFragments[0] = mRecyclerViewFragment = new StickyNavRecyclerViewFragment();
mFragments[1] = mListViewFragment = new StickyNavListViewFragment();
mFragments[2] = mScrollViewFragment = new StickyNavScrollViewFragment();
mFragments[3] = mWebViewFragment = new StickyNavWebViewFragment();
mTitles = new String[4];
mTitles[0] = "RecyclerView";
mTitles[1] = "ListView";
mTitles[2] = "ScrollView";
mTitles[3] = "WebView";
mContentVp.setAdapter(new ContentViewPagerAdapter(getSupportFragmentManager()));
mIndicator.initData(0, mContentVp);
}
Aggregations