Code example for PagerAdapter

Methods: setPrimaryItem

0
	 
	@Override 
	public void setPrimaryItem(View container, int position, Object object) {
		// TODO Auto-generated method stub 
		 
		super.setPrimaryItem(container, position, object);
	} 
	@Override 
	public void destroyItem(View container, int position, Object object) {
		((ViewPager) container).removeView(mListViews.get(position));
	} 
	@Override 
	public void finishUpdate(View container) {
		// TODO Auto-generated method stub 
		super.finishUpdate(container);
	} 
	@Override 
	public void startUpdate(View container) {
		// TODO Auto-generated method stub 
		super.startUpdate(container);
	}