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

Hyphens.Companion

public static class Hyphens.Companion


Summary

Public methods

static final @NonNull Hyphens

The words will be automatically broken at appropriate hyphenation points.

static final @NonNull Hyphens

Lines will break with no hyphenation.

Public methods

getAuto

public static final @NonNull Hyphens getAuto()

The words will be automatically broken at appropriate hyphenation points.

However, suggested line break opportunities (see Suggesting line break opportunities above) will override automatic break point selection when present.

+---------+
| Experi- |
| mental  |
+---------+

getNone

public static final @NonNull Hyphens getNone()

Lines will break with no hyphenation.

"Hard" hyphens will still be respected. However, no automatic hyphenation will be attempted. If a word must be broken due to being longer than a line, it will break at any character and will not attempt to break at a syllable boundary.

+---------+
| Experim |
| ental   |
+---------+