Example #1
0
 @Override
 protected void onDetachedFromWindow() {
   super.onDetachedFromWindow();
   for (View_OnAttachStateChangeListener listener : mListeners) {
     listener.onViewDetachedFromWindow(this);
   }
 }
    @Override
    protected void onDetachedFromWindow() {
      super.onDetachedFromWindow();
      for (View_OnAttachStateChangeListener listener : mListeners) {
        listener.onViewDetachedFromWindow(this);
      }

      if (mOverflowPopup != null) mOverflowPopup.dismiss();
    }