Handling Link Event in TextView
See original GitHub issueHi @noties, I am new to this library and I am stuck with handling the links on my TextView. On click I am getting the following message:
W/LinkResolverDef: Actvity was not found for intent, Intent { act=android.intent.action.VIEW dat=Romans:1:18 (has extras) }
I need to pick the text Romans1:18
from the link and format it for further processing. Can you please guide me to use this library?
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Android TextView with Clickable Links: how to capture clicks?
I have implemented a small class with the help of which you can handle long clicks on TextView itself and Taps on the...
Read more >A better way to handle links in TextView | by Saket Narayan
A better way to handle links in TextView. There are two ways of “linkifying” URLs in a TextView. First, as an XML attribute:...
Read more >A better way to handle links in TextView - Saket Narayan
A better way to handle links in TextView ... and second, programmatically: TextView textView = (TextView) findViewById(R.id.text1); Linkify.
Read more >Input events overview - Android Developers
An event listener is an interface in the View class that contains a single callback method. These methods will be called by the...
Read more >How to Create a Hyperlink Using Android TextView
To create a clickable hyperlink in your Android app using the TextView widget follow ... How to Create a Clickable Link to Another...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @sandeepyohans !
There are multiple way to do so, the most simple would be:
You can use, but only if you absolutely sure that your markdown doesn’t contain tables or images. If you need to support tables and images you can do this:
I hope this helps!
Hello @sandeepyohans !
Something like this should do:
Hope this helps! Please keep me updated if it doesn’t answer your needs, we will work something out 🙌