code: public void dismiss() {
          if (null == contentExitAnimation) {
              if (null != mPopupWindow) {
                  mPopupWindow.dismiss();
              }
          } else {
              mContentView.startAnimation(contentExitAnimation);
          }
      }
docs: 关闭PopupWindow