使用LoopViewPager替换ViewPager,且 @Override public void destroyItem(ViewGroup container, int position, Object object) { } 设为空实现 @Override public Object instantiateItem(ViewGroup container, int position) { // 给 container 添加一个view try { container.addView(imageList.get(position % imageList.size())); } catch (Exception e) { e.printStackTrace(); } // 返回一个和该view相对的object return imageList.get(position % imageList.size()); } 要捕捉异常