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]);
1 Answer
-
done it
win.setToolbar([flexSpace,a,fixedSpace,b,flexSpace],
{
translucent: true,
animated: true
});