https://kotlinlang.org logo
Title
z

zt

03/24/2022, 8:10 PM
I'm making something that has descriptions, that can sometimes contain URLs. How can I make those URLs be made clickable?
e

ephemient

03/24/2022, 8:15 PM
1. inline links aren't a great idea in mobile apps, the touch targets are too small (mobile browsers have some magic to snap touches to links to make their effective touch targets larger). if you can get away with making the whole text tappable, I would do so 2. there is a feature request to add linkification to compose text, https://issuetracker.google.com/issues/139312671 3. for now you'll have to manually set up the
annotatedString
yourself. https://www.hellsoft.se/rendering-markdown-with-jetpack-compose/
👍 2