Code example for FragmentStatePagerAdapter

Methods: getFragment

0
            super(fm);
        } 
 
        @Override 
        public Fragment getItem(int position) {
            return getFragment(position);
        } 
 
        @Override 
        public int getCount() { 
            return TIMEFRAMES.length;
        } 
         
        @Override 
        public CharSequence getPageTitle(int position) {
            return TIMEFRAMES[position].getLabel(); 
        } 
 
    } 
 
    @Override