Package-level declarations
Functions
Link copied to clipboard
fun HtmlText(modifier: Modifier = Modifier, @StringRes textId: Int, urlSpanStyle: SpanStyle = SpanStyle(
color = MaterialTheme.colors.secondary,
textDecoration = TextDecoration.Underline
), colorMapping: Map<Color, Color> = emptyMap(), color: Color = Color.Unspecified, fontSize: TextUnit = TextUnit.Unspecified, fontStyle: FontStyle? = null, fontWeight: FontWeight? = null, fontFamily: FontFamily? = null, letterSpacing: TextUnit = TextUnit.Unspecified, textDecoration: TextDecoration? = null, textAlign: TextAlign? = null, lineHeight: TextUnit = TextUnit.Unspecified, overflow: TextOverflow = TextOverflow.Clip, softWrap: Boolean = true, maxLines: Int = Int.MAX_VALUE, inlineContent: Map<String, InlineTextContent> = mapOf(), onTextLayout: (TextLayoutResult) -> Unit = {}, style: TextStyle = LocalTextStyle.current, onUriClick: (String) -> Unit? = null)
Simple Text composable to show the text with html styling from string resources. Supported are:
fun HtmlText(modifier: Modifier = Modifier, annotatedString: AnnotatedString, color: Color = Color.Unspecified, fontSize: TextUnit = TextUnit.Unspecified, fontStyle: FontStyle? = null, fontWeight: FontWeight? = null, fontFamily: FontFamily? = null, letterSpacing: TextUnit = TextUnit.Unspecified, textDecoration: TextDecoration? = null, textAlign: TextAlign? = null, lineHeight: TextUnit = TextUnit.Unspecified, overflow: TextOverflow = TextOverflow.Clip, softWrap: Boolean = true, maxLines: Int = Int.MAX_VALUE, inlineContent: Map<String, InlineTextContent> = mapOf(), onTextLayout: (TextLayoutResult) -> Unit = {}, style: TextStyle = LocalTextStyle.current, onUriClick: (String) -> Unit? = null)
fun HtmlText(modifier: Modifier = Modifier, text: String, urlSpanStyle: SpanStyle = SpanStyle(
color = MaterialTheme.colors.secondary,
textDecoration = TextDecoration.Underline
), colorMapping: Map<Color, Color> = emptyMap(), color: Color = Color.Unspecified, fontSize: TextUnit = TextUnit.Unspecified, fontStyle: FontStyle? = null, fontWeight: FontWeight? = null, fontFamily: FontFamily? = null, letterSpacing: TextUnit = TextUnit.Unspecified, textDecoration: TextDecoration? = null, textAlign: TextAlign? = null, lineHeight: TextUnit = TextUnit.Unspecified, overflow: TextOverflow = TextOverflow.Clip, softWrap: Boolean = true, maxLines: Int = Int.MAX_VALUE, inlineContent: Map<String, InlineTextContent> = mapOf(), onTextLayout: (TextLayoutResult) -> Unit = {}, style: TextStyle = LocalTextStyle.current, onUriClick: (String) -> Unit? = null)
Simple Text composable to show the text with html styling from a String. Supported are: