1.适配器代码
public class VPAdapter extends PagerAdapter { private List<ImageView> list; private Context context; private BannerClick bannerClick; public VPAdapter(List<ImageView> list, Context context) { this.list = list; this.context = context; } @Override public int getCount() { return Integer.MAX_VALUE; } @Override public boolean isViewFromObject(View view, Object object) { return view == object