コード例 #1
0
 @Override
 protected void onAttachedToWindow() {
   super.onAttachedToWindow();
   for (View_OnAttachStateChangeListener listener : mListeners) {
     listener.onViewAttachedToWindow(this);
   }
 }
コード例 #2
0
    @Override
    protected void onDetachedFromWindow() {
      super.onDetachedFromWindow();
      for (View_OnAttachStateChangeListener listener : mListeners) {
        listener.onViewDetachedFromWindow(this);
      }

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