Code example for PagerAdapter

Methods: getItemPosition

0
	} 
 
	@Override 
	public int getItemPosition(Object object) {
		// TODO Auto-generated method stub 
		return super.getItemPosition(object);
	} 
 
	@Override 
	public Object instantiateItem(View container, int position) {
		// TODO Auto-generated method stub 
		((ViewPager) container).addView(views.get(position));
		return views.get(position);
	} 
 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE