public final class AnimationUtils
- extends java.lang.Object
This class provides a set of utilities to simplify UI animation code.
- Mikle Garin
Returns move animation speed depending on the animated object location.
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static float calculateSpeed(float location,
- Returns move animation speed depending on the animated object location.
Speed provided by this method will ensure smooth movement animation with spring effect.
Specified location must be a floating point number in the inclusive range [0.0, 1.0].
0.0 location = object is at the start of its path.
1.0 location = object has reached the end of its path.
location - object location on its path
minSpeed - minimum desired object speed, used when object is close to path start and end
maxSpeed - maximum desired object speed, used when object is in the middle of its path
- move animation speed