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

TextIndentKt

public final class TextIndentKt


Summary

Public methods

static final @NonNull TextIndent
lerp(@NonNull TextIndent start, @NonNull TextIndent stop, float fraction)

Linearly interpolate between two TextIndents.

Public methods

lerp

public static final @NonNull TextIndent lerp(@NonNull TextIndent start, @NonNull TextIndent stop, float fraction)

Linearly interpolate between two TextIndents.

The fraction argument represents position on the timeline, with 0.0 meaning that the interpolation has not started, returning start (or something equivalent to start), 1.0 meaning that the interpolation has finished, returning stop (or something equivalent to stop), and values in between meaning that the interpolation is at the relevant point on the timeline between start and stop. The interpolation can be extrapolated beyond 0.0 and 1.0, so negative values and values greater than 1.0 are valid.