Code example for PagerAdapter

Methods: getItemPosition

0
    }   
 
    @Override   
    public int getItemPosition(Object object) {  
        // TODO Auto-generated method stub   
        return super.getItemPosition(object);  
    }   
 
    @Override   
    public void destroyItem(View arg0, int arg1, Object arg2) {  
        // TODO Auto-generated method stub   
        ((ViewPager) arg0).removeView(mPageViews.get(arg1));  
    }   
 
    @Override   
    public Object instantiateItem(View arg0, int arg1) {  
        // TODO Auto-generated method stub   
        ((ViewPager) arg0).addView(mPageViews.get(arg1));  
        return mPageViews.get(arg1);  
    }