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

LineBreak.Companion

public static class LineBreak.Companion


Summary

Public methods

static final @NonNull LineBreak

Looser breaking rules, suitable for short text such as titles or narrow newspaper columns.

static final @NonNull LineBreak

Slower, higher quality line breaking for improved readability.

static final @NonNull LineBreak

Basic, fast line breaking.

Public methods

getHeading

public static final @NonNull LineBreak getHeading()

Looser breaking rules, suitable for short text such as titles or narrow newspaper columns. For longer lines of text, use Paragraph for improved readability.

getParagraph

public static final @NonNull LineBreak getParagraph()

Slower, higher quality line breaking for improved readability. Suitable for larger amounts of text.

getSimple

public static final @NonNull LineBreak getSimple()

Basic, fast line breaking. Ideal for text input fields, as it will cause minimal text reflow when editing.