There are a lot of answers about how to enable links in a TextView
, but I couldn't find anything about how to make [a portion of] text in a TextView
look like a link with a custom action. In other words I want to fake a link because the action isn't important enough to get a button. I don't want it to look like a main action on the page.
For example, in my about dialog I want to show the text "Open Source Licenses", have it look like a link, but launch my OpenSourceLicensesActivity
instead of an actual URL.
I eventually got my answer from posts by those who were experiencing issues with the above, so I'm providing an answer to this specific question here.