@Override
 public void onDetachedFromWindow() {
   super.onDetachedFromWindow();
   removeCallbacks();
 }
 @Override
 public void onAttachedToWindow() {
   super.onAttachedToWindow();
   removeCallbacks();
 }