setMaxWidth

fun setMaxWidth(maxWidth: Int): TextParams

Sets the maximum width for the text layout.

The provided width is coerced so it doesn't exceed the current width (if defined).

Return

The current instance for chaining.

Parameters

maxWidth

The maximum width value.