Titanium Community Questions & Answer Archive

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

How to change name of tabbed bar.

Hello,

I am using two tabbed which is added in navigation bar and
toolbar area of my window. but I want to set activate and deactivate tabs and change its name programmatic without clicking on particular tabs how it is possible? my code is:

code:

var tb4 = Titanium.UI.createTabbedBar({
index:0,
labels:['Home','Log in','Upload video'],
backgroundColor:'#333333',
style:Titanium.UI.iPhone.SystemButtonStyle.BAR
});
win1.setTitleControl(tb4);

var tb2 = Titanium.UI.createTabbedBar({
labels:['Search','Most viewed','Most recent'],
backgroundColor:'#333333',
style:Titanium.UI.iPhone.SystemButtonStyle.BAR
});
var flexSpace = Titanium.UI.createButton({
systemButton:Titanium.UI.iPhone.SystemButton.FLEXIBLE_SPACE
});

win1.setToolbar([flexSpace,tb2,flexSpace]);

— asked April 5th 2010 by vikas khairnar
  • tabbedbar
0 Comments

0 Answers

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.