I know this is so easy (doh...) but I am looking for a way to run a method on tapping or clicking a TextView line of text in an Android App.
I keep thinking about bu
To click on a piece of the text (not the whole TextView), you can use Html or Linkify (both create links that open urls, though, not a callback in the app).
LinkifyUse a string resource like:
Here is a link: http://www.stackoverflow.com
Then in a textview:
TextView textView = ...
textView.setText(R.string.links);
Linkify.addLinks(textView, Linkify.ALL);
HtmlUsing Html.fromHtml:
Here you can put html <a href="http://www.stackoverflow.com">Link!</>
Then in your textview:
textView.setText(Html.fromHtml(getString(R.string.html)));