Last active
October 19, 2021 21:41
-
-
Save victorbrndls/0ef7691ab01893f5147edabe4a04d4e0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildAnnotatedString { | |
append("This is some unstyled text\\n") | |
withStyle(SpanStyle(color = Color.Red)) { | |
append("Red text\\n") | |
} | |
pushStringAnnotation(tag = "URL", annotation = "<https://developer.android.com>") | |
withStyle(SpanStyle(fontSize = 24.sp)) { | |
append("Large text") | |
} | |
pop() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment