0

I making application for Android and ipone using titanium sdk in which i have used tabgroup.but when i go from one one screen to another screen in same tab.tab is dissable in second screen while it is visible i iphone device not in Android device. I have used fiollwing codeto go from main window to inner window in same tab.

**

Continue.addEventListener('click',function(e)
      {
        var win = Titanium.UI.createWindow({
            url:'tab1_continue.js',backgroundColor:'#fff'
        });
        Titanium.UI.currentTab.open(win,{animated:true});** 

it does not work on android.plz help

4

2 回答 2

0

如果这是在“app.js”中,则使用此代码

Continue.addEventListener('click',function(e){
        var win = Titanium.UI.createWindow({
            url:'tab1_continue.js',backgroundColor:'#fff'
        });
        <tabName>.open(win,{animated:true});**
});

否则

Continue.addEventListener('click',function(e){
        var win = Titanium.UI.createWindow({
            url:'tab1_continue.js',backgroundColor:'#fff'
        });
        Titanium.UI.currentTab.open(win,{animated:true});
});
于 2012-08-15T05:15:43.653 回答
0

“url”属性导致窗口重量级,这意味着它不能是选项卡组的子项(它必须占用所有内容)。阅读 Appcelerator 问答中有关此主题的更多讨论。

于 2012-08-15T00:42:06.667 回答