Titanium Community Questions & Answer Archive

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

setToolbar transparent ?

I have this code with a window which has a bg. When i open up the window it bunches up the bg by the toolbar. The question is can i make the toolbar transparent so this does not happen?

var a = Titanium.UI.createButton({
title:'Good Tip',
width:100,
style:Titanium.UI.iPhone.SystemButtonStyle.BORDERED
});

a.addEventListener('click',
function(e)
{
goodtip(win.TipTitle);

});

var b = Titanium.UI.createButton({
title:'Bad Tip',
width:100,
style:Titanium.UI.iPhone.SystemButtonStyle.BORDERED
});

b.addEventListener('click',
function(e)
{
badtip(win.TipTitle);

});

var flexSpace = Titanium.UI.createButton({
systemButton:Titanium.UI.iPhone.SystemButton.FLEXIBLE_SPACE,
});
var fixedSpace = Titanium.UI.createButton({
systemButton:Titanium.UI.iPhone.SystemButton.FIXED_SPACE,
width:50
});
win.setToolbar([flexSpace,a,fixedSpace,b,flexSpace]);

— asked March 18th 2010 by Mark pollard
  • settoolbar
  • toolbar
  • transparent
0 Comments

1 Answer

  • done it

    win.setToolbar([flexSpace,a,fixedSpace,b,flexSpace],
    {
    translucent: true,
    animated: true
    });

    — answered March 18th 2010 by Mark pollard
    permalink
    2 Comments
    • don't work for me!

      — commented January 4th 2011 by ben roe
    • Thank you

      — commented June 20th 2013 by kitisak bongkotsakul
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.