code: public void close() {
      updateDimensions(width, height);
      state = State.CLOSED;
      showIcons(false);
  
      animator[LEFT].setFloatValues(0, button[LEFT]);
      animator[RIGHT].setFloatValues(width, button[RIGHT]);
      animator[RADIUS].setFloatValues(0, button[RADIUS]);
      animator[TOP].setFloatValues(0, button[TOP]);
      animator[BOTTOM].setFloatValues(height, button[BOTTOM]);
  
      animatorSet.cancel();
      animatorSet.start();
      if (iconClosedDrawable instanceof Animatable) {
        ((Animatable) iconClosedDrawable).start();
      }
      this.animate()
              .y(yPosition)
              .setDuration(animationDuration)
              .setInterpolator(DECELERATE_INTERPOLATOR)
              .start();
    }
docs: Close the menu.