Code example for FragmentStatePagerAdapter

Methods: destroyItem

0
    } 
     
    @Override 
    public void destroyItem(ViewGroup container, int position, Object object) {
       mCachedFragments.remove(Integer.valueOf(position));
       super.destroyItem(container, position, object);
    } 
 
 
    public boolean pendingErrorAt(int position) {
        return mDownloadErrors.contains(Integer.valueOf(position));
    } 
 
    /* -* 
     * Called when a change in the shown pages is going to start being made. 
     *  
     * @param   container   The containing View which is displaying this adapter's page views. 
     *- / 
    @Override 
    public void startUpdate(ViewGroup container) { 
        Log.e(TAG, "** startUpdate");