Beispiel #1
0
 @Override
 public Object instantiateItem(ViewGroup container, int position) {
   BaseSliderView b = mImageContents.get(position);
   View v = b.getView();
   container.addView(v);
   return v;
 }
Beispiel #2
0
 /**
  * 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;
     }
   }
 }