tintColor
works with the hex value only, without the '#'...
var win = Ti.UI.createWindow({ backgroundColor: "olive", layout: "vertical", id: "index" });
var img1 = Ti.UI.createImageView({ id: "img", image: "/images/ic_assignment_white_48.png", top: "40%", tintColor: "#ffa500" });
var img2 = Ti.UI.createImageView({ id: "img2", image: "/images/ic_assignment_white_48.png", tintColor: "ffa500" });
win.add(img1);
win.add(img2);
win.open();
To replicate, create a basic alloy app. Replace code in index.xml and index.js with below, respectively:
INDEX.XML
----------------
INDEX.JS
------------
$.index.open();
$.img3.tintColor= '#ffa500';
$.img4.tintColor= 'ffa500';
This issue is not due to '#'. It is due to position of image view. This is fixed as part of TIMOB-25201in 7.1.0. [~isener] Can you please verify it in SDK >=7.1.0. Thanks!
[~vijaysingh], thank you for the fix, but I can't really test this any longer as this case was created 9 months ago...
Closing as a duplicate. If this is in error, please reopen.