Android JSS Bug - Not Applied From File Includes

You must Login before you can answer or comment on any questions.

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?

— asked 2 years ago by Andreas Sandberg
2 Comments
  • I'm experiencing a similar issue on Android. When I add an include to any .js then the corresponding .jss acts as if it does not exist.

    — commented 2 years ago by Mark S

  • Confirming the same issue. Did you find any solution other than giving up on .jss files altogether?

    — commented 2 years ago by Sam Square

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 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!