@Override public Object instantiateItem(ViewGroup container, int position) { BaseSliderView b = mImageContents.get(position); View v = b.getView(); container.addView(v); return v; }
/** * When image download error, then remove. * * @param result * @param target */ @Override public void onEnd(boolean result, BaseSliderView target) { if (target.isErrorDisappear() == false || result == true) { return; } for (BaseSliderView slider : mImageContents) { if (slider.equals(target)) { removeSlider(target); break; } } }