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 view, int position, Object object) {
		((ViewPager)view).removeView(pageViews.get(position));
	} 
	 
	/** 
	 * 获取有一个item 
	 */ 
	public Object instantiateItem(View view, int position) {
		((ViewPager) view).addView(pageViews.get(position));
		return pageViews.get(position);
	}