Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20276] Color of an "autolink"ed label

GitHub Issuen/a
TypeNew Feature
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsandroid, color
ReporterJonathan Plantey
AssigneeUnknown
Created2016-01-26T09:04:17.000+0000
Updated2018-02-28T19:55:46.000+0000

Description

Hello, it seems to be not possible to change the color of an autolinked label on android (tintcolor on IOS ?).
<Label autoLink="Ti.UI.AUTOLINK_EMAIL_ADDRESSES" color="#fff" text="blabla email@fai.com">
The stackoverflow post : http://stackoverflow.com/questions/34877984/autolink-text-color Is it possible to do someting ? Thanks

Comments

  1. Sharif AbuDarda 2016-01-27

    Hello, Below code demonstrate the issue.
       var win = Ti.UI.createWindow({
           title : 'Login/Logout',
           backgroundColor : '#fff',
           fullscreen : false
       });
       
       var label = Ti.UI.createLabel({
           text : 'shabudarda@gmail.com',
           color : '#FFF',
           autoLink : Ti.UI.AUTOLINK_EMAIL_ADDRESSES,
           textAlign : 'center'
       });
       win.add(label);
       win.open();
       
    Though the label color is '#FFF', autoLink makes it slightly greenish. There is no way to change the link color in Android. This is possible in Native Android. See the [referance](http://developer.android.com/reference/android/widget/TextView.html#attr_android:textColorLink). This feature would be a nice inclusion to our platform. Thanks.

JSON Source