The Developer Preview for Android 11 is now available; test it out and share your feedback.

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.

Inherited extension functions

From androidx.compose
operator T

IMPORTANT: This global operator is TEMPORARY, and should be removed whenever an answer for contextual composers is reached.

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.

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.