Web color names aqua, fushia, lime and maroon are not supported, despite them being included in the [HTML color names](
// According to the following test case:
// Android does not currently support: brown
// iOS does not currently support: aqua, fuchsia, lime, maroon
// stripped for tableview background color still to be tested
var webcolor = [
'black', 'gray', 'darkgray', 'lightgray', 'white', 'red', 'green', 'blue', 'cyan', 'yellow',
'magenta', 'orange', 'purple', 'brown', 'transparent',
'aqua', 'fuchsia', 'lime', 'maroon', 'pink', 'navy', 'silver', 'olive', 'teal'];
var webcolorPointer = 0;
var win = Ti.UI.createWindow({
backgroundColor: webcolor[webcolorPointer],
exitOnClose: true,
fullscreen: false,
layout: 'vertical',
title: 'Webcolor Demo'
});
var label = Ti.UI.createLabel({
backgroundColor: 'white',
text: webcolor[webcolorPointer]
});
webcolorPointer++;
win.add(label);
// click window to iterate through color array
win.addEventListener('click', function(e){
e.source.backgroundColor = webcolor[webcolorPointer];
label.text = webcolor[webcolorPointer];
webcolorPointer++;
if(webcolorPointer === webcolor.length){
webcolorPointer = 0;
}
});
win.open();
Duplicate of TIMOB-8678
Closing ticket as duplicate.