Code example for ActionBar.Tab

Methods: getPosition

0
		mPager = pager;
	} 
 
	public void onTabSelected(Tab tab, FragmentTransaction ft)
	{ 
		mPager.setCurrentItem(tab.getPosition());
	} 
 
	public void onTabUnselected(Tab tab, FragmentTransaction ft) {}
 
	public void onTabReselected(Tab tab, FragmentTransaction ft) {}
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE