ScaleSpringAnimation

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.

Constructors

Link copied to clipboard
constructor(view: View)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun addUpdateListener(function: (Any?, Any?) -> Any?)
Link copied to clipboard
fun animateToFinalPosition(scaleX: Float, scaleY: Float)
Link copied to clipboard
Link copied to clipboard
fun setSpringForce(dampingRatio: Float?, stiffness: Float?)