Google is committed to advancing racial equity for Black communities. See how.

TweenBuilder

class TweenBuilder<T> : DurationBasedAnimationBuilder<T>
kotlin.Any
   ↳ androidx.animation.AnimationBuilder<T>
   ↳ androidx.animation.DurationBasedAnimationBuilder<T>
   ↳ androidx.animation.TweenBuilder

TweenBuilder builds a tween animation that animates from start to end value, based on an easing curve within the given duration.

Summary

Public constructors

TweenBuilder builds a tween animation that animates from start to end value, based on an easing curve within the given duration.

Public methods
TweenSpec<V>
build(converter: TwoWayConverter<T, V>)

Properties
Easing

Easing function for the Tween animation.

Inherited properties

Public constructors

<init>

TweenBuilder()

TweenBuilder builds a tween animation that animates from start to end value, based on an easing curve within the given duration.

Public methods

build

fun <V : AnimationVector> build(converter: TwoWayConverter<T, V>): TweenSpec<V>

Properties

easing

var easing: Easing

Easing function for the Tween animation. Default: FastOutSlowInEasing

Easing functions define the rate of change of the value being animated. They allow animation to accelerate or decelerate in a specific pattern.