Search in sources :

Example 1 with FixedPagerAdapter

use of com.chinaztt.fda.adapter.base.FixedPagerAdapter in project FastDev4Android by jiangqqlmj.

the class MainInfoFragment method initDatas.

@AfterViews
public void initDatas() {
    fragments = new ArrayList<>();
    fragments.add(new OneFragment());
    fragments.add(new TwoFragment());
    fragments.add(new ThreeFragment());
    fragments.add(new FourFragment());
    mPagerAdater = new FixedPagerAdapter(getChildFragmentManager());
    mPagerAdater.setFragments(fragments);
    info_viewpager.setAdapter(mPagerAdater);
    id_indicator.setViewPager(info_viewpager, 0);
}
Also used : FixedPagerAdapter(com.chinaztt.fda.adapter.base.FixedPagerAdapter) AfterViews(org.androidannotations.annotations.AfterViews)

Aggregations

FixedPagerAdapter (com.chinaztt.fda.adapter.base.FixedPagerAdapter)1 AfterViews (org.androidannotations.annotations.AfterViews)1