Class

LineBreak.Strategy

The strategy used for line breaking.

Source set: Android
public class Strategy internal constructor(internal val value: Int)

The strategy used for line breaking.

Members

Companion

Source set: Android
public companion object

Properties

Simple

Source set: Android
public 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. | +---------+

HighQuality

Source set: Android
public val HighQuality: Strategy

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

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

Balanced

Source set: Android
public 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. | +-----------------------+

Unspecified

Source set: Android
public val Unspecified: Strategy

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

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: