开发者

Adding a view to a view just crashes the android application

开发者 https://www.devze.com 2023-03-10 13:35 出处:网络
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 cra

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

精彩评论

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