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

TextMotion.Companion

public static class TextMotion.Companion


Summary

Public methods

static final @NonNull TextMotion

Text is rendered for maximum linearity which provides smooth animations for text.

static final @NonNull TextMotion

Optimizes glyph shaping, placement, and overall rendering for maximum readability.

Public methods

getAnimated

public static final @NonNull TextMotion getAnimated()

Text is rendered for maximum linearity which provides smooth animations for text. Trade-off is the readability of the text on some low DPI devices, which still should not be a major concern. Use this TextMotion if you are planning to scale, translate, or rotate text.

getStatic

public static final @NonNull TextMotion getStatic()

Optimizes glyph shaping, placement, and overall rendering for maximum readability. Intended for text that is not animated. This is the default TextMotion.