Search in sources :

Example 1 with StickyNavRecyclerViewFragment

use of cn.bingoogolapple.refreshlayout.demo.ui.fragment.StickyNavRecyclerViewFragment 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);
}
Also used : StickyNavWebViewFragment(cn.bingoogolapple.refreshlayout.demo.ui.fragment.StickyNavWebViewFragment) BGANormalRefreshViewHolder(cn.bingoogolapple.refreshlayout.BGANormalRefreshViewHolder) StickyNavRecyclerViewFragment(cn.bingoogolapple.refreshlayout.demo.ui.fragment.StickyNavRecyclerViewFragment) StickyNavListViewFragment(cn.bingoogolapple.refreshlayout.demo.ui.fragment.StickyNavListViewFragment) StickyNavScrollViewFragment(cn.bingoogolapple.refreshlayout.demo.ui.fragment.StickyNavScrollViewFragment)

Aggregations

BGANormalRefreshViewHolder (cn.bingoogolapple.refreshlayout.BGANormalRefreshViewHolder)1 StickyNavListViewFragment (cn.bingoogolapple.refreshlayout.demo.ui.fragment.StickyNavListViewFragment)1 StickyNavRecyclerViewFragment (cn.bingoogolapple.refreshlayout.demo.ui.fragment.StickyNavRecyclerViewFragment)1 StickyNavScrollViewFragment (cn.bingoogolapple.refreshlayout.demo.ui.fragment.StickyNavScrollViewFragment)1 StickyNavWebViewFragment (cn.bingoogolapple.refreshlayout.demo.ui.fragment.StickyNavWebViewFragment)1