Code example for FragmentPagerAdapter

Methods: instantiateItem

0
		this.r = r;
	} 
 
	@Override 
	public Object instantiateItem(ViewGroup container, int position) {
		return super.instantiateItem(container, position);
	} 
 
	@Override 
	public void notifyDataSetChanged() { 
		super.notifyDataSetChanged(); 
	} 
	 
	@Override 
	public Fragment getItem(int position) {
		// Method getItem is called to instantiate the fragment for the given page. 
		Fragment fragment = null;
		 
		//Position p = Position.values()[position]; 
		 
		/*switch (position) {