Titanium Community Questions & Answer Archive

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

backgroundColor and borderColor on creatTab doesn't work

Why doesn't backgroundColor and borderColor work?

var tab = Titanium.UI.createTab({
            window: window,
            backgroundImage: 'none',

            title: label,
            backgroundColor: '#444',
            borderColor: '#ff0000',
            borderWidth: 3,
            touchEnabled: false,
            badge: '4',
            icon: _icon != null ? config.iconFolder + _icon : null

— asked June 17th 2010 by Frederik Heyninck
  • backgroundcolor
  • bordercolor

1 Answer

  • there is an open ticker for this :


    — answered June 19th 2010 by Stephane Pelamourgues
    • Is it still not possible to set the backgroundcolor of a tab?

      — commented October 18th 2011 by Onoma Epitheto
    • I have the same question!

      — commented February 8th 2012 by Handel Das Vire
    • Apparently not. I've tried:

      backgroundImage: '/images/sale-tab.png',
      backgroundDisabledImage: '/images/sale-tab.png',
      backgroundFocusedImage: '/images/sale-tab.png',
      backgroundImage: '/images/sale-tab.png',
      backgroundGradient: null,
      backgroundColor: Styles.colors.royal_blue,
      backgroundDisabledColor: Styles.colors.royal_blue,
      backgroundFocusedColor: Styles.colors.royal_blue,
      backgroundSelectedColor: Styles.colors.royal_blue,

      And none of them have any effect whatsoever. Nada. And I can't even look at the "ticker" indicated here it just says "Not a public project".

      — commented February 27th 2012 by Eric Rushing
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.