@Override public void destroyItem(ViewGroup container, int position, Object object) { ((ViewPager) container).removeView((View) object); }
加上(View)object即可
程序猿必读