code: private void renderAnimations() {
          Keyframe kf0, kf1;
  
          // Set up animator for disappearing.
          kf0 = Keyframe.ofFloat(0f, 1f);
          kf1 = Keyframe.ofFloat(1f, 0.8f);
          PropertyValuesHolder radius = PropertyValuesHolder.ofKeyframe(
                  "animationRadiusMultiplier", kf0, kf1);
  
          kf0 = Keyframe.ofFloat(0f, 1f);
          kf1 = Keyframe.ofFloat(1f, 0f);
          PropertyValuesHolder fade = PropertyValuesHolder.ofKeyframe("alpha", kf0, kf1);
  
          kf0 = Keyframe.ofFloat(0f, 0f);
          kf1 = Keyframe.ofFloat(1f, 70f);
          PropertyValuesHolder rotation = PropertyValuesHolder.ofKeyframe("rotation", kf0, kf1);
  
          mDisappearAnimator = ObjectAnimator.ofPropertyValuesHolder(
                  this, radius, fade, rotation).setDuration(300);
          mDisappearAnimator.addUpdateListener(mInvalidateUpdateListener);
  
  
          // Set up animator for reappearing.
          kf0 = Keyframe.ofFloat(0f, 0.8f);
          kf1 = Keyframe.ofFloat(1f, 1f);
          radius = PropertyValuesHolder.ofKeyframe(
                  "animationRadiusMultiplier", kf0, kf1);
  
          kf0 = Keyframe.ofFloat(0f, 0f);
          kf1 = Keyframe.ofFloat(1f, 1f);
          fade = PropertyValuesHolder.ofKeyframe("alpha", kf0, kf1);
  
          kf0 = Keyframe.ofFloat(0f, -70f);
          kf1 = Keyframe.ofFloat(1f, 0f);
          rotation = PropertyValuesHolder.ofKeyframe("rotation", kf0, kf1);
  
          mReappearAnimator = ObjectAnimator.ofPropertyValuesHolder(
                  this, radius, fade, rotation).setDuration(300);
          mReappearAnimator.addUpdateListener(mInvalidateUpdateListener);
      }
docs: Render the animations for appearing and disappearing.