Quantcast
Viewing all articles
Browse latest Browse all 15

Ellipses not changing the color when label color is changed.

On iOS, the Ellipses contain the color which is assigned to the label, but when the color of label is changed, Ellipses doesn't change its color. Is there any work around for it?

Application type: mobile Studio Details : CLI version 3.4.0, Titanium SDK version 3.4.0.v20140916181713 iOS Simulator : Version 8.0 (550.1)

var win = Ti.UI.createWindow();
 
var lbl = Ti.UI.createLabel({
    height : '35dp',
    color : 'white',
    width : '100dp',
    top : "25%",
    wordWrap : "false",
    ellipsize : "true",
    text : 'sjsdkfbkjsdbfjksdbfksdbfdsfubkdjsbfsdbfksdfnbhsdlfuknsdfbkjsdfsdu'
});
 
 
lbl.addEventListener('click',function(){
    lbl.setColor('red');
});
 
win.add(lbl);
win.open();

Viewing all articles
Browse latest Browse all 15

Trending Articles