AnimatedValue

class AnimatedValue<T> : BaseAnimatedValue<T>
kotlin.Any
   ↳ androidx.animation.BaseAnimatedValue<T>
   ↳ androidx.animation.AnimatedValue

AnimatedValue is an animatable value holder. It can hold any type of value, and automatically animate the value change when the value is changed via animateTo. AnimatedValue supports value change during an ongoing value change animation. When that happens, a new animation will transition AnimatedValue from its current value (i.e. value at the point of interruption) to the new target. This ensures that the value change is always continuous.

Summary

Public constructors

<init>(valueHolder: ValueHolder<T>)

AnimatedValue is an animatable value holder.

Inherited functions

Inherited properties

Public constructors

<init>

AnimatedValue(valueHolder: ValueHolder<T>)

AnimatedValue is an animatable value holder. It can hold any type of value, and automatically animate the value change when the value is changed via animateTo. AnimatedValue supports value change during an ongoing value change animation. When that happens, a new animation will transition AnimatedValue from its current value (i.e. value at the point of interruption) to the new target. This ensures that the value change is always continuous.

Parameters
valueHolder: ValueHolder<T> A value holder whose value field will be updated during animations