I have a large text view that I am developing using SpannableStringBuilder. I want to be able to assign special click event handlers to certain text values. For example, if I click on a superscript character, I want it to lay out a toast with some information that references a superscript. So far I have found a link that helps make the type of regular expressions, such as emails and phone numbers, trigger the appropriate action. What I want to do is define the range and its style and assign it a click handler. I did not find anything built-in that supports this functionality, and so I ask someone who has a new understanding of how to do this. Thank.
source
share