How to add link inside text in Android

Kirill Suslov
3 min readApr 4, 2019

You probably used apps which have a TextView with a link to a Terms of Service page, or Privacy Notes, or Help Center, or anything else that is available on web but isn’t built into the app.

Ever wondered how it’s built? The short answer is Spans.

There won’t be any theory in this article since there’s plenty of good resources out there like this one:

--

--