CarSpan

@CarProtocol
class CarSpan : CharacterStyle

Known direct subclasses
CarIconSpan

A span that replaces the text it is attached to with a CarIcon that is aligned with the surrounding text.

ClickableSpan

A span that makes a section of text clickable.

DistanceSpan

A span that replaces the text it is attached to with the string representation of a instance.

DurationSpan

A span that replaces the text it is attached to with a localized duration string.

ForegroundCarColorSpan

A span that changes the color of the text to which the span is attached.


Base class for all span types allowed for a car app.

See also
CarText

Summary

Public constructors

Public functions

Unit

Public constructors

CarSpan

Added in 1.0.0
CarSpan()

Public functions

updateDrawState

Added in 1.0.0
fun updateDrawState(tp: TextPaint): Unit