Code example for FragmentPagerAdapter

Methods: getSupportFragmentManager

0
        mPager.setAdapter(mPagerAdapter);
    } 
 
    private class RandomListPagerAdapter extends FragmentPagerAdapter { 
        public RandomListPagerAdapter() { 
            super(getSupportFragmentManager()); 
        } 
 
        @Override 
        public Fragment getItem(int position) {
            return new RandomListFragment(); 
        } 
 
        @Override 
        public int getCount() { 
            return 5; 
        } 
    } 
 
    class RandomListFragment extends ListFragment {
        @Override