private void updateSliding(float newPositionNormalized){
  currentSlide=newPositionNormalized;
  state=currentSlide == 1 ? EXPANDED : currentSlide == 0 ? COLLAPSED : SLIDING;
  float slideY=Math.abs((currentSlide * maxSlide) - maxSlide);
  slidableView.setY(slideY);
  invalidate();
  notifyListeners(currentSlide);
}

private void updateSliding ( float newPositionNormalized ) { currentSlide = newPositionNormalized ; state = currentSlide == 1 ? EXPANDED : currentSlide == 0 ? COLLAPSED : SLIDING ; float slideY = Math . abs ( ( currentSlide * maxSlide ) - maxSlide ) ; slidableView . setY ( slideY ) ; invalidate ( ) ; notifyListeners ( currentSlide ) ; }
always use this method to update the position of the sliding view .
