[TIMOB-17018] Android: Add ability to listen to click events when an autolink is clicked
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 3.2.3 |
Fix Version/s | n/a |
Components | Android |
Labels | android, api |
Reporter | Rajesh Gollapudi |
Assignee | Unknown |
Created | 2014-05-21T18:19:12.000+0000 |
Updated | 2018-02-28T20:03:19.000+0000 |
Description
Currently Ti.UI.Label supports 'link' event for iOS7 only. Would like to see this added for Android as well. (at least 4.0+)
http://docs.appcelerator.com/titanium/3.0/#!/api/Titanium.UI.Label-event-link
If I add a label using:
<Label html='some other text. <a href="#internal">internallink</a> Some other text' />
We can listen for a link event on iOS7 only. Without this capability a single click event for the whole label is thrown on Android. If a label has several links, it's not possible to find which particular link is clicked.
Note: These are not external links like google.com. They are internal and I would like to perform actions based on which particular link is clicked. Eg. Search for a particular text.
Other workarounds like using StyledLabel module have their limitations.
Moving this feature request to engineering for further evaluation and prioritization.
Any idea when and if this feature will be implemented?
Any update on this one?
[~rg] TIMOB-18608 just added the link event for Android in SDK 4.0.0.