The property animation system provides a way for us to animate properties of any object, such as its position or opacity. It is also able to animate properties of custom types.
ValueAnimator type lets us animate values of some type for the duration of an animation by specifying set values to animate through. Let's take a look at the following steps:
ValueAnimatortype by calling one of its factory methods, such as
OfObject. The instance is then used to tween a value from one value to another:
ValueAnimator animator = ValueAnimator.OfInt(1, 1000); animator.SetDuration(5000); animator.SetInterpolator(new BounceInterpolator()); animator.Start();