Code example for FragmentStatePagerAdapter

Methods: getItem

0
				int positionOffsetPixels) {
		} 
 
		public void onPageSelected(int position) {
			mActionBar.setSelectedNavigationItem(position);
			Fragment fr = getItem(position);
		} 
 
		public void onPageScrollStateChanged(int state) {
		} 
 
		public void onTabSelected(Tab tab, FragmentTransaction ft) {
			Object tag = tab.getTag();
			for (int i = 0; i < mTabs.size(); i++) {
				if (mTabs.get(i) == tag) {
					mViewPager.setCurrentItem(i);
				} 
			} 
		} 
 
		public void onTabUnselected(Tab tab, FragmentTransaction ft) {