Let’s say you have a app.js file where you have mentioned all your controls. Then you need to make a file with extension “jss”.
So here is the sample code –
Code for app.js:
var win = Ti.UI.currentWindow({className : ‘winStyle’});
var mainView = Ti.UI.createView({id : ‘viewStyle’});
win.add(mainView);
|
Code for app.jss:
|
//For ID # viewStyle { backgroundColor:#336699; } //For Class . winStyle { titleid:'Main Window'; titleImage:'images/mainWin.png'; } THAT'S IT