LayoutTextContentItem

constructor(layout: Layout, text: CharSequence, fullText: CharSequence, isExplicitlyTruncated: Boolean, color: Int = layout.paint.color, isMounted: () -> Boolean = { true })

Parameters

text

the text that is mounted; for a custom ellipsis, the already-truncated string.

fullText

the text the component was given, before any truncation.

isExplicitlyTruncated

whether the component pre-truncated the text for a custom ellipsis.

color

the color the text is drawn in, when it differs from the layout's paint.

isMounted

whether layout is still the one the component draws; span bounds are empty once it isn't, as they were before this class was shared.