code: public void dismiss() {
      if (isDismissing) {
        return;
      }
  
      outAnim.setAnimationListener(new Animation.AnimationListener() {
        @Override public void onAnimationStart(Animation animation) {
  
        }
  
        @Override public void onAnimationEnd(Animation animation) {
          decorView.post(new Runnable() {
            @Override public void run() {
              decorView.removeView(rootView);
              isDismissing = false;
              if (onDismissListener != null) {
                onDismissListener.onDismiss(DialogPlus.this);
              }
            }
          });
        }
  
        @Override public void onAnimationRepeat(Animation animation) {
  
        }
      });
      contentContainer.startAnimation(outAnim);
      isDismissing = true;
    }
docs: Dismisses the displayed dialog.