Class

LineBreak.Strategy

The strategy used for line breaking.

Android
value class Strategy internal constructor(internal val value: Int)

The strategy used for line breaking.

Companion Object

Properties

Android
val Simple: Strategy

Basic, fast break strategy. Hyphenation, if enabled, is done only for words that don't fit on an entire line by themselves.

+---------+ | This is | | an | | example | | text. | +---------+

Android
val HighQuality: Strategy

Does whole paragraph optimization for more readable text, including hyphenation if enabled.

+---------+ | This | | is an | | example | | text. | +---------+

Android
val Balanced: Strategy

Attempts to balance the line lengths of the text, also applying automatic hyphenation if enabled. Suitable for small screens.

+-----------------------+ | This is an | | example text. | +-----------------------+

Android
val Unspecified: Strategy

This represents an unset value, a usual replacement for "null" when a primitive value is desired.