{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

EasingKt

public final class EasingKt


Summary

Public methods

static final @NonNull Easing

Elements exiting a screen use acceleration easing, where they start at rest and end at peak velocity.

static final @NonNull Easing

Elements that begin and end at rest use this standard easing.

static final @NonNull Easing

It returns fraction unmodified.

static final @NonNull Easing

Incoming elements are animated using deceleration easing, which starts a transition at peak velocity (the fastest point of an element’s movement) and ends at rest.

Public methods

getFastOutLinearInEasing

public static final @NonNull Easing getFastOutLinearInEasing()

Elements exiting a screen use acceleration easing, where they start at rest and end at peak velocity.

This is equivalent to the Android FastOutLinearInInterpolator

getFastOutSlowInEasing

public static final @NonNull Easing getFastOutSlowInEasing()

Elements that begin and end at rest use this standard easing. They speed up quickly and slow down gradually, in order to emphasize the end of the transition.

Standard easing puts subtle attention at the end of an animation, by giving more time to deceleration than acceleration. It is the most common form of easing.

This is equivalent to the Android FastOutSlowInInterpolator

getLinearEasing

public static final @NonNull Easing getLinearEasing()

It returns fraction unmodified. This is useful as a default value for cases where a Easing is required but no actual easing is desired.

getLinearOutSlowInEasing

public static final @NonNull Easing getLinearOutSlowInEasing()

Incoming elements are animated using deceleration easing, which starts a transition at peak velocity (the fastest point of an element’s movement) and ends at rest.

This is equivalent to the Android LinearOutSlowInInterpolator