code: @Override public void onViewReleased(View releasedChild, float xVel, float yVel) {
      super.onViewReleased(releasedChild, xVel, yVel);
  
      if (draggableView.isDragViewAtBottom() && !draggableView.isDragViewAtRight()) {
        triggerOnReleaseActionsWhileHorizontalDrag(xVel);
      } else {
        triggerOnReleaseActionsWhileVerticalDrag(yVel);
      }
    }
docs: Override method used to apply different animations when the dragged view is released. The
  dragged view is going to be maximized or minimized if the view is above the middle of the
  custom view and the velocity is greater than a constant value.
  
  @param releasedChild the captured child view now being released.
  @param xVel X velocity of the pointer as it left the screen in pixels per second.
  @param yVel Y velocity of the pointer as it left the screen in pixels per second.