@Override
 protected void onDetachedFromWindow() {
   super.onDetachedFromWindow();
   if (mSlidesImageAdapter != null) mSlidesImageAdapter.setImageChangeListener(null);
 }
 public void setAdapter(SlidesImageAdapter adapter) {
   mSlidesImageAdapter = adapter;
   mSlidesImageAdapter.setImageChangeListener(this);
 }