StyledStringBuilder
constructor(string: String, defaultTextStyle: KalugaTextStyle, linkStyle: LinkStyle?, context: Context)
Parameters
string
the String to style
defaultTextStyle
The KalugaTextStyle to apply when no StringStyleAttribute are set for a given range. This may be partially overwritten (e.g. StringStyleAttribute.CharacterStyleAttribute.ForegroundColor may overwrite KalugaTextStyle.color)
linkStyle
The LinkStyle to apply when StringStyleAttribute.Link is applied. When null the Theme default will be used
context
the Context in which the StyledString will be displayed
Parameters
string
the String to style
defaultTextStyle
The KalugaTextStyle to apply when no StringStyleAttribute are set for a given range. This may be partially overwritten (e.g. StringStyleAttribute.CharacterStyleAttribute.ForegroundColor may overwrite KalugaTextStyle.color)
linkStyle
The LinkStyle to apply when StringStyleAttribute.Link is applied. When null the Theme default will be used