LineBreak.Strategy
-
android
value class LineBreak.Strategy
The strategy used for line breaking.
Summary
Public companion properties |
||
|---|---|---|
LineBreak.Strategy |
Attempts to balance the line lengths of the text, also applying automatic hyphenation if enabled. |
android
|
LineBreak.Strategy |
Does whole paragraph optimization for more readable text, including hyphenation if enabled. |
android
|
LineBreak.Strategy |
Basic, fast break strategy. |
android
|
LineBreak.Strategy |
This represents an unset value, a usual replacement for "null" when a primitive value is desired. |
android
|
Public companion properties
Balanced
val Balanced: LineBreak.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. | +-----------------------+
HighQuality
val HighQuality: LineBreak.Strategy
Does whole paragraph optimization for more readable text, including hyphenation if enabled.
+---------+ | This | | is an | | example | | text. | +---------+
Simple
val Simple: LineBreak.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. | +---------+
Unspecified
val Unspecified: LineBreak.Strategy
This represents an unset value, a usual replacement for "null" when a primitive value is desired.