Scale Spring Animation
A class that provides a spring animation for scaling a view.
This class uses two SpringAnimation
objects, one for the X-axis and one for the Y-axis, to animate the scale of a view. The SpringAnimation
objects are configured with a SpringForce
that has a damping ratio of 1.0 and a stiffness of 1_500.0.
The ScaleSpringAnimation
class provides methods for animating the view to a final scale, checking if the animation is running, and setting the spring force.
Parameters
view
The view to be animated.