Clickable Links in Jetpack Compose: AnnotatedString with Custom URL Handler
While building the onboarding screen for my app, I needed a simple text that read something like this: The green hyperlinks are clickable Pretty straightforward, right? Just a bit of text with two clickable links — Privacy Policy and Terms of Service. But as I started implementing it, I realized: there isn’t a single complete guide explaining how to make part of a text clickable using AnnotatedString in Jetpack Compose — especially with the new LinkAnnotation API and a custom URL handler for better control. ...