Project: titanium
Issue TIMOB-19165: Cannot style links in Attributed Strings
The following test case shows you cannot override the color and underlining of links in Attributed Strings. It doesn't matter if you add the link before or after styling the same (or part of) the text you make a link. I'd like to change the color and remove the underline. h1. Test Case {code} var win = Titanium.UI.createWindow({ backgroundColor: '#ddd', }); win.add(Ti.UI.createLabel({ top: 100, attributedString: Ti.UI.iOS.createAttributedString({ text: 'Appcelerator always blue and underlined', attributes: [ { type: Ti.UI.iOS.ATTRIBUTE_LINK, value: 'http://www.appcelerator.com', range: [0, 12] }, { type: Ti.UI.iOS.ATTRIBUTE_FOREGROUND_COLOR, value: 'red', range: [0, 12] }, { type: Ti.UI.iOS.ATTRIBUTE_UNDERLINES_STYLE, value: Ti.UI.iOS.ATTRIBUTE_UNDERLINE_STYLE_NONE, range: [0, 12] }] }) })); win.open(); {code}
Story points: 5