I'm just starting Appcelerator's Titanium Alloy.
How can I add styles to my controller/index.js here's the code:
var title = Titanium.UI.createLabel({
title: "My Label",
id: "myLabel"
});
I am trying this one on styles/index.tss
"#myLabel": {
textAlign: "left",
right: 15,
color: '#000',
font: { fontSize:20 },
shadowColor: '#aaa',
shadowOffset: {x:5, y:5},
horizontalWrap: true
}
but unfortunately it's now working. Can anyone teach me on how to add styles to my Titanium UI