code: private AnimationListener createHeaderAnimationListener(
              @NonNull final WizardDialog wizardDialog) {
          return new AnimationListener() {
  
              @Override
              public void onAnimationStart() {
  
              }
  
              @Override
              public void onAnimationEnd() {
                  int duration = getResources().getInteger(android.R.integer.config_shortAnimTime);
                  BackgroundAnimation animation =
                          new CrossFadeTransitionAnimation.Builder(getActivity())
                                  .setDuration(duration).create();
                  wizardDialog.setHeaderBackground(R.drawable.dialog_header_background, animation);
              }
  
          };
      }
docs: Creates and returns a listener, which allows to reset a wizard dialog's header background to
  default, when its animation is finished.
  
  @param wizardDialog
  The wizard dialog as an instance of the class {@link WizardDialog}
  @return The listener, which has been created, as an instance of the type {@link
  AnimationListener}