Titanium Community Questions & Answer Archive

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

Change Color of Title Bar

Hi there,

what value has to be in the tiapp.xml (or somewhere else) to get the title bar of my main window black?

— asked April 28th 2010 by Michael Gajda
  • bar
  • color
  • mobile
  • tiapp
  • title
  • titlebar
0 Comments

3 Answers

  • Accepted Answer

    Simple.

    Set it (barColor) during creation:

    var win = Titanium.UI.createWindow({
    title: 'My Title',
    url: 'my.js',
    barColor: 'orange'
    });

    or later using

    win.barColor = 'red';

    — answered April 28th 2010 by Peter Lum
    permalink
    0 Comments
  • barColor in the window properties

    have a look through the kitchensink to find this..

    — answered April 28th 2010 by Damien Elmes
    permalink
    0 Comments
  • Ok i got it:

    when you create the window, eg:

    var win = Titanium.UI.createWindow({
        title: ' Here your Title',
        url: 'hereYourFile.js',
        barColor: '#000' // here it is, instead of the blue you get a black bar
    });
    
    — answered April 28th 2010 by Michael Gajda
    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.