Code example for FragmentStatePagerAdapter

Methods: dispatchTabSelected

0
            // Do nothing 
        } 
 
        @Override 
        public void onTabSelected(Tab tab, FragmentTransaction ft) {
            dispatchTabSelected(tab.getPosition());
        } 
 
        @Override 
        public void onTabUnselected(Tab tab, FragmentTransaction ft) {
            // Do nothing 
        } 
    } 
}