Create Clickable Text using AnnotatedStrings
- Published on
In this lesson, we will use the buildAnnotatedString
function to add an underline and color part of the text. We will also add some extra information such as a URL that needs to be launched. Then we will use a ClickableText
with the combination of a LocalUriHandler
in order to launch the passed URL.
Discussion
Typography in Jetpack Compose
- 1Styling Text1:05
- 2How to reuse your text styles0:53
- 3Apply custom fonts in Jetpack Compose1:37
- 4How to create and use custom fonts1:59
- 5Style text via your application's Theme1:05
- 6Create Clickable Text using AnnotatedStrings4:13