Titanium Community Questions & Answer Archive

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

TabGroup background color

I recently ran into a problem, i've created a tabgroup with 3 tabs in it, now i want to change the background image of the entire tabgroup, so it looks like this:

image

I've tried it like this:

var tabGroup = Ti.UI.createTabGroup({
    backgroundImage: 'assets/tabGroupBg.png'
});

and on the tab itself

var startupTab = Ti.UI.createTab({
    icon: 'assets/icons/KS_nav_views.png',
    title: 'Test',
    backgroundImage: 'assets/tabGroupBg.png',
    window: startupWindow
});

But it's not working in anyway, is there something else you have to do?

— asked December 4th 2010 by Wouter De Loose
  • tabgroup
3 Comments
  • i am assuming this is on Android? It is good practice to include the platform as a tag when posting a question

    — commented December 4th 2010 by Aaron Saunders
  • Wouter, please state your target mobile platform and the Ti SDK you are using. A convenient way to do this, is simply to add it to the question tags.

    — commented December 4th 2010 by Paul Dowsett
  • It's on iPhone, i'm using Titanium 1.4.3 (can't find a way to add tags anymore)

    I've searched some further more, but I can't seem to find it, the only solution i came up with was using a Tabbed Bar and opening and closing windows manually.

    — commented December 4th 2010 by Wouter De Loose

1 Answer

  • Accepted Answer

    On iOs you don't. Apple restrictions(as far as I know).
    You may want to use some views to mimic the tabGroup.

    — answered December 4th 2010 by Dan Tamas
    permalink
    3 Comments
    • I see, so bassicly I just need to "recreate" a tabgroup with some buttons and images?

      — commented December 4th 2010 by Wouter De Loose
    • Correct

      — commented December 4th 2010 by Matt Apperson
    • How could I add the "persisten" and "floating" effect to it? any tip?

      — commented July 18th 2011 by Tiago Scolari
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.