CarSpan


@CarProtocol
public class CarSpan extends 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 methods

void

Public constructors

CarSpan

Added in 1.0.0
public CarSpan()

Public methods

updateDrawState

Added in 1.0.0
public void updateDrawState(@NonNull TextPaint tp)