Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17018] Android: Add ability to listen to click events when an autolink is clicked

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.2.3
Fix Version/sn/a
ComponentsAndroid
Labelsandroid, api
ReporterRajesh Gollapudi
AssigneeUnknown
Created2014-05-21T18:19:12.000+0000
Updated2018-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.

Comments

  1. Ritu Agrawal 2014-05-22

    Moving this feature request to engineering for further evaluation and prioritization.
  2. Rajesh Gollapudi 2014-06-04

    Any idea when and if this feature will be implemented?
  3. Rajesh Gollapudi 2015-02-19

    Any update on this one?
  4. Alex Bernier 2015-04-13

    [~rg] TIMOB-18608 just added the link event for Android in SDK 4.0.0.

JSON Source