Code example for PagerAdapter

Methods: getItemPosition

0
            return arg0 == arg1;  
        }   
   
        @Override   
        public int getItemPosition(Object object) {  
            return super.getItemPosition(object);  
        }   
   
        @Override   
        public void destroyItem(View arg0, int arg1, Object arg2) {  
            ((ViewPager) arg0).removeView(mPageViews.get(arg1));  
        }   
   
        @Override   
        public Object instantiateItem(View arg0, int arg1) {
            ((ViewPager) arg0).addView(mPageViews.get(arg1));  
            return mPageViews.get(arg1);  
        }   
   
        @Override   
        public void restoreState(Parcelable arg0, ClassLoader arg1) {