Code example for FragmentPagerAdapter

Methods: destroyItem

1
		return myFragment;
	} 
	 
	@Override 
    public void destroyItem(ViewGroup pager, int position, Object object) {
        super.destroyItem(pager, position, object);
        mPageReferenceMap.remove(position);
        if (debug) Log.i(TAG, "destroyItem @ " + position);
    } 
 
    @Override 
    public void finishUpdate(ViewGroup pager) {
        super.finishUpdate(pager);
    } 
 
    @Override 
    public Object instantiateItem(ViewGroup pager, int position) {
    	if (debug) Log.i(TAG, "instantiateItem @ " + position);
    	return super.instantiateItem(pager, position);
    }