The second Android 11 Developer Preview 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.

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.