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);
}
Aggregations