@Override protected void onAttachedToWindow() { super.onAttachedToWindow(); for (View_OnAttachStateChangeListener listener : mListeners) { listener.onViewAttachedToWindow(this); } }
@Override protected void onDetachedFromWindow() { super.onDetachedFromWindow(); for (View_OnAttachStateChangeListener listener : mListeners) { listener.onViewDetachedFromWindow(this); } if (mOverflowPopup != null) mOverflowPopup.dismiss(); }