Trying to use the jss feature with 1.5 and have run into the following issue. If a file is included from app.js and creates any type of UI element, the jss properties are not applied at all for Android. It does however work just fine on iphone. Here's a code sample:
app.js var window = Ti.UI.createWindow({ id:"w" }); Ti.include('utils.js'); utils.js var b = Titanium.UI.createButton({id:'b1'}); window.add(b); window.open(); app.jss #b1 { width:100; height:200; title:'test'; }Anybody have any ideas?
3 Answers
As for me, if i create new project with single class is working on both Android and iPhone, but when i added jss file to my existing project, only iPhone is working ... i dont know what i need to do on Android..
Please Help
I'm also having this problem! HELP!
I think in the example above you would have to name the jss file utils.jss as the definition is in the utils.js file.
Your Answer
Think you can help? Login to answer this question!