We have seen that interpolators are used in various guises in Android animations. Interpolators provide a characteristic motion to a simple animation, and it is sometimes useful to take advantage of them to provide new types of motion.
You may have wondered to yourself how an interpolator actually works when you dig into the internals of it. Essentially, it provides a multiplier for any animation that it is associated with. It takes in a floating-point number between 0 and 1, and it gives back a floating-point number between 0 and 1.
The simplest example is a
LinearInterpolator, which just gives back the number it was given. A more complex example is the
AccelerateInterpolator, which ...