@Override
  public void destroyItem(ViewGroup container, int position, Object object) {
    int virtualPosition = position % getRealCount();
    debug("destroyItem: real position: " + position);
    debug("destroyItem: virtual position: " + virtualPosition);

    // only expose virtual position to the inner adapter
    adapter.destroyItem(container, virtualPosition, object);
  }
    @Override
    void showDetail(int position) {
      clearMultiChoice();
      detailEmptyView.setVisibility(View.GONE);
      detailSource.startUpdate(detailTarget);

      if (lastPosition > -1) {
        detailSource.destroyItem(detailTarget, lastPosition, handle);
      }

      lastPosition = position;

      handle = detailSource.instantiateItem(detailTarget, position);
      detailSource.finishUpdate(detailTarget);
    }
  @Override
  public void destroyItem(ViewGroup container, int position, Object object) {
    int realFirst = getRealFirstPosition();
    int realLast = getRealLastPosition();
    int realPosition =
        (mAdapter instanceof FragmentPagerAdapter || mAdapter instanceof FragmentStatePagerAdapter)
            ? position
            : toRealPosition(position);

    if (mBoundaryCaching && (position == realFirst || position == realLast)) {
      mToDestroy.put(position, new ToDestroy(container, realPosition, object));
    } else {
      mAdapter.destroyItem(container, realPosition, object);
    }
  }
    private void clearDetail(boolean showEmptyView) {
      clearMultiChoice();
      detailSource.startUpdate(detailTarget);

      if (lastPosition > -1) {
        detailSource.destroyItem(detailTarget, lastPosition, handle);
      }

      lastPosition = -1;

      detailSource.finishUpdate(detailTarget);

      if (showEmptyView) {
        detailEmptyView.setVisibility(View.VISIBLE);
      }
    }
 @Override
 public void destroyItem(ViewGroup container, int position, Object object) {
   super.destroyItem(container, position, object);
   container.removeView(list.get(position));
 }
 /** 删除指定位置的页面 */
 @Override
 public void destroyItem(ViewGroup container, int position, Object object) {
   // TODO Auto-generated method stub
   container.removeView(viewsList.get(position));
   super.destroyItem(container, position, object);
 }
 @Override
 public void destroyItem(ViewGroup container, int position, Object object) {
   // TODO Auto-generated method stub
   super.destroyItem(container, position, object);
 }
 @Override
 public void destroyItem(ViewGroup container, int position, Object object) {
   wrappedAdapter.destroyItem(container, position, object);
 }