Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-17018

Android: Add ability to listen to click events when an autolink is clicked

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: Release 3.2.3
    • Fix Version/s: None
    • Component/s: Android
    • Labels:
    • Environment:

      Android, Titanium 3.2.3, Windows 8.1

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rg Rajesh Gollapudi
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration