How to open a window in full screen that covers the Tab above

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

Hello to all you guys! My problem is this. My app is composed of a tabgroup with two tabs. The first tab has the bow window, and the second also, and so far no problem. The problem lies in the second tab. In the window of the second tab theres a small button. When I press this small button I see a new window or view with the data, the problem is that this window or view must be in fullscreen, that should also cover the tab of the page (for instance, where else is the title of the window). how can i do? Better to use a window or view? Now I'm trying with a fullscreen window enabling property: true, but it does not work. Thank you.

2 Answers

Accepted Answer

If you post the code, you may be able to get more details but for now all I can say is that to open a tabbed window, I have to it like this

Titanium.UI.currentTab.open(tabbedWindow, {
        animated : true
    });
to open a window without the tab just create the window and open it.

— answered 9 months ago by Birender Saini
answer permalink
5 Comments
  • TO THE EXPERT WHO IS DOWN VOTING THE ANSWERS - Would you care to explain the problem with the answer, obviously try only if you know enough about the subject.

    I have working code to support the answer.

    — commented 9 months ago by Birender Saini

  • Heres the working code --- Please mark this as right answer if it solves your issue, so other having same problem can use it.

    var tabGroup = Titanium.UI.createTabGroup();
     
    var win = Ti.UI.createWindow({
        title:'',
        width:'auto'
    });
     
    var tab1 = Titanium.UI.createTab({  
        icon:'/images/home.png',
        title:'Menù',
        window:win
    });
     
    var win2 = Ti.UI.createWindow({
        title:'',
        width:'auto'
    });
     
    var tab2 = Titanium.UI.createTab({  
        icon:'/images/contact.png',
        title:'Info',
        window:win2
    });
     
     
     
    var button = Ti.UI.createImageView({
        image:Titanium.Filesystem.resourcesDirectory+'iphone/appicon.png'
    });
     
    var winInFullScreen = Ti.UI.createView({
        top:0,
        height:640,
        width:320,
        backgroundColor:'red'
    });
     
     
    button.addEventListener('click',function(e){
     
        //Create a New Window 
        var newWindow = Titanium.UI.createWindow({
            title : "My New Window",
            backgroundColor : '#fff',
            layout : "vertical"
        });
     
     
        // navbar button on left for Closing the window
        var cancelBtn = Titanium.UI.createButton({
            title : 'Close'
        });
     
        newWindow.setLeftNavButton(cancelBtn);
        cancelBtn.addEventListener('click',function(e){
            newOuterWindow.close();
        });
     
     
        //Heres a little trick you need to do to show the nav bar in a standalone windows   
     
        var newNav = Titanium.UI.iPhone.createNavigationGroup({ 
            window: newWindow
        });
        var newOuterWindow=Ti.UI.createWindow();
        newOuterWindow.add(newNav);
        newOuterWindow.open();
     
     
    })
     
     
    win2.add(button);
     
     
     
    tabGroup.addTab(tab1);
    tabGroup.addTab(tab2);
     
    tabGroup.open({
        transition: Titanium.UI.iPhone.AnimationStyle.CURL_UP
    });

    — commented 9 months ago by Birender Saini

  • thank you very much to all. now text the code and will let you know!

    — commented 9 months ago by nicolò monili

  • Show 2 more comments

Open it modal: true

— answered 9 months ago by Stephen Feather
answer permalink
6 Comments
  • also, as you have not shown your code, you need to do myWindow.open({modal: true}) and not myTab.open(myWindow)

    — commented 9 months ago by Stephen Feather

  • maybe I explained evil I ...

    I have to open a new window from the second tab with a small button that opens in fullscreen.

    — commented 9 months ago by nicolò monili

  • a moment and I'll place the code

    — commented 9 months ago by nicolò monili

  • Show 3 more comments

Your Answer

Think you can help? Login to answer this question!