Code example for FragmentStatePagerAdapter

Methods: instantiateItem

0
			return titles[position];
		} 
 
		@Override 
		public Object instantiateItem(ViewGroup container, int position) {
			return super.instantiateItem(container, position);
		} 
 
		@Override 
		public void destroyItem(ViewGroup container, int position, Object object) {
			super.destroyItem(container, position, object);
		} 
	} 
	 
	class HomePageChangeListener implements OnPageChangeListener { 
 
		@Override 
		public void onPageScrollStateChanged(int position) {
		} 
 
		@Override