code: public void completeAnimationToInitialHeight(int completeShrinkAnimationSpeed, int initialAnimableLayoutHeight) {
          HeightAnimation heightAnim = new HeightAnimation(animableView, animableView.getMeasuredHeight(), initialAnimableLayoutHeight);
  
          heightAnim.setDuration(completeShrinkAnimationSpeed);
          heightAnim.setInterpolator(new DecelerateInterpolator());
          animableView.startAnimation(heightAnim);
      }
docs: Animates animableView to get its initial height back