code: private AnimatorListener createCancelAnimationListener() {
          return new AnimatorListenerAdapter() {
  
              @Override
              public void onAnimationEnd(final Animator animation) {
                  super.onAnimationEnd(animation);
                  AbstractAnimateableDialog.super.cancel();
              }
  
          };
      }
docs: Creates and returns an animation listener, which allows to cancel the dialog, once the
  animation, which is used to hide it, has finished.
  
  @return The animation listener, which has been created, as an instance of the type {@link
  AnimatorListener}