Titanium Community Questions & Answer Archive

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

[mobile] how to remove(hidden) title(title bar) on window?

I do not show title on window.

app.js

var win = Ti.UI.createWindow({
    url: 'win.js'
});

win.js

var curWin = Ti.UI.currentWindow;

I have not set title of window.

mobile sdk version 1.4.2.

— asked December 1st 2010 by becca zhang
  • title
  • window
0 Comments

1 Answer

  • Becca

    You should state your mobile platform when posting a question (in the tags, preferably), otherwise it's very difficult to answer you.

    For android:

    If you are running 1.4.X of the SDK, it would not show the title by default for the first context (app.js). Other contexts should be OK.

    If you are using continuous build 1.5.X from the day before last, there was a bug which caused all windows to be shown without a title by default. This was quickly fixed for the following day.

    Hence, window title problems have been resolved for the latest release of 1.5.X from the continuous builds website.

    I hope this resolves your issue.

    — answered December 1st 2010 by Paul Dowsett
    permalink
    1 Comment
    • mobile sdk version 1.4.2

      If this window in a tab, then this window can be hidden or remove title?

      app.js

      var tabGroup = Ti.UI.createTabGroup();
      
      var win1 = Ti.UI.createWindow();
      var win2 = Ti.UI.createWindow();
      
      var tab1 = Ti.UI.createTab({
          icon: 'KS_nav_views.png',
          title: 'Tab 1', //this tab title
          window: win1
      });
      
      var tab2 = Ti.UI.createTab({
          icon: 'KS_nav_views.png',
          title: 'Tab 2', //this tab title
          window: win2
      });
      
      tabGroup.addTab(tab1);
      tabGroup.addTab(tab2);
      
      tabGroup.open();
      

      — commented December 3rd 2010 by becca zhang
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.