Search in sources :

Example 1 with DictionaryManageFragmentPager

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());
}
Also used : DictionaryManageFragmentPager(com.zhan_dui.dictionary.pageradapter.DictionaryManageFragmentPager) IndicatorOnPageChangeListener(com.zhan_dui.dictionary.listeners.IndicatorOnPageChangeListener)

Aggregations

IndicatorOnPageChangeListener (com.zhan_dui.dictionary.listeners.IndicatorOnPageChangeListener)1 DictionaryManageFragmentPager (com.zhan_dui.dictionary.pageradapter.DictionaryManageFragmentPager)1