use of com.zhan_dui.dictionary.pageradapter.DictionaryManageFragmentPager in project little-bear-dictionary by daimajia.
the class DictionaryManageFragment method onViewCreated.
@Override
public void onViewCreated(View view, Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
mViewPager = (ViewPager) view.findViewById(R.id.viewpager);
mTabPageIndicator = (TabPageIndicator) view.findViewById(R.id.titles);
mDictionaryManageFragment = new DictionaryManageFragmentPager(getActivity());
mViewPager.setAdapter(mDictionaryManageFragment);
mTabPageIndicator.setViewPager(mViewPager);
mTabPageIndicator.setOnPageChangeListener(new IndicatorOnPageChangeListener());
}
Aggregations