private void animateView ( final int diff , final float animationSpeed , @ NonNull final AnimationListener animationListener , @ NonNull final Interpolator interpolator ) { if ( ! isDragging ( ) && ! isAnimationRunning ( ) ) { long duration = calculateAnimationDuration ( diff , animationSpeed ) ; Animation animation = new DraggableViewAnimation ( this , diff , duration , animationListener ) ; animation . setInterpolator ( interpolator ) ; startAnimation ( animation ) ; } }
Animates the view to become shown or hidden .