code: public final void hideView() {
          if (animatedView.getAnimation() != null) {
              animatedView.getAnimation().cancel();
          }
  
          ObjectAnimator animator = createAnimator(true);
          animator.start();
      }
docs: Hides the view.