Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

How can i hide titlebar on a window

var win1 = Titanium.UI.createWindow({
backgroundColor:'#fff',
barColor:'#005524',
url:'main_windows/homepage.js'
});

what command can i write so it doesnt put the title on top, on the bar.

— asked May 12th 2010 by Tricycle Inc.
  • title
  • window
0 Comments

5 Answers

  • id be careful with methods not in the doc (mostly for fear of deprecation or not supported). when creating a window you can pass in the navBarHidden:true prop.

    var win = Ti.UI.createWindow({
       fullscreen:false,
       navBarHidden:true,
       backgroundColor: '#fff'
    });
    
    — answered July 1st 2011 by John Brennan
    permalink
    0 Comments
  • Try this

    win1.hideNavBar()
    
    — answered May 12th 2010 by Dan Tamas
    permalink
    0 Comments
  • You can try add every variable related to your window with "navBarHidden : true" attribute, works for me.
    Example:

    var myWindow = Titanium.UI.createWindow({
        navBarHidden : true,
    });
    
    var myTab = Titanium.UI.createTab({
        navBarHidden : true,
        window : myWindow
    });
    
    var myTabGroup = Titanium.UI.createTabGroup({
        navBarHidden : true,
    });
    myTabGroup.addTab(myTab);
    myTabGroup.open({fullscreen : true});
    
    — answered August 21st 2013 by numan zainudin
    permalink
    2 Comments
    • @Numan, whilst it is great you have taken the time to add an answer to a question, doing this on question asked more than three years ago that also had answers - add no value.

      If you really wish to assist, please review more recent questions and help with those.

      — commented August 21st 2013 by Malcolm Hollingsworth
    • Sorry, i thought maybe someone can use it cause i tried other methods above but didn't work for me.

      — commented August 21st 2013 by numan zainudin
  • hey tamas, where did you find this answer in the documentation?

    — answered July 22nd 2010 by Frank Michel
    permalink
    0 Comments
  • Hi
    I use a lot the kitchensink examples, and the git sources.

    It might be difficult in the beginning but after a while you get used to and even start learning objC ( for free :D )

    — answered July 22nd 2010 by Dan Tamas
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.