开发者

Adding a view to a view just crashes the android application

I'm using Kevin Whinnery's Snapost application for reference (https://github.com/kwhinnery/Snapost/blob/master/1.1.x/Snapost/Resources/app.js), but when add a view to a view the application just crashes.

This is the only code i have in the application.

Titanium.UI.setBackgroundColor('#FFF'); 

var viewContainer = Titanium.UI.createView({
 开发者_StackOverflow   top:0,
    width:320,
    height:420 
});

var home = Titanium.UI.createView({
      top:0,
      width:320,
      height:420,
});

viewContainer.add(home);

var app = Ti.UI.createWindow({
    title:"main window"
});    
app.add(viewContainer);
app.open();


Seems to be an issue with API 1.6, it works fine on API 2.2.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜