I have a ScrollView
containing a TextView
. I linkify
parts of that TextView with
Pattern pattern = Pattern.compile("MyLink");
Linkify.addLinks(textView1, pattern, "mylink://");
I habe an Intent filter
in my Manifest for mylink://
so a new Activity
is opened when MyLink
is clicked (as described in this question).
This works most of the time, sometimes though a click on the MyLink
portion of the TextView
doesn't open the Activity but only scrolls the ScrollView
in which my TextView
resides to the top.
Where does this behaviour come from and how can I fix it?