@@ -0,0 +1,901 @@
+package com.cky.learnandroiddetails.ViewPagerTest;%0A%0Aimport android.support.v4.view.PagerAdapter;%0Aimport android.view.View;%0Aimport android.view.ViewGroup;%0Aimport android.widget.ImageView;%0A%0Aimport java.util.ArrayList;%0A%0A/**%0A * Created by cuikangyuan on 2017/7/24.%0A */%0A%0Apublic class MyViewPagerAdapter extends PagerAdapter %7B%0A%0A    private ArrayList%3CImageView%3E viewList = new ArrayList%3C%3E();%0A%0A    private MyViewPagerAdapter(ArrayList%3CImageView%3E viewList) %7B%0A        this.viewList = viewList;%0A    %7D%0A%0A    @Override%0A    public int getCount() %7B%0A        //%E8%AE%BE%E7%BD%AE%E6%88%90%E6%9C%80%E5%A4%A7 %E7%94%A8%E6%88%B7%E7%9C%8B%E4%B8%8D%E5%88%B0%E8%BE%B9%E7%95%8C%0A        return Integer.MAX_VALUE;%0A    %7D%0A%0A    @Override%0A    public boolean isViewFromObject(View view, Object object) %7B%0A        return view == object;%0A    %7D%0A%0A    @Override%0A    public void destroyItem(ViewGroup container, int position, Object object) %7B%0A        //super.destroyItem(container, position, object);%0A        //%E4%B8%8D%E9%9C%80%E8%A6%81%E5%9C%A8%E6%AD%A4%E5%A4%84removeView%0A    %7D%0A%7D%0A

modify viewpager view