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(menuViews.get(arg1));  
        }   
   
        @Override   
        public Object instantiateItem(View arg0, int arg1) {  
            // TODO Auto-generated method stub   
        	((ViewPager) arg0).addView(menuViews.get(arg1));
             
            return menuViews.get(arg1);  
        }