Titanium Community Questions & Answer Archive

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

Changeing tab names in Android

Are there any known workarounds for to dynamically change tab names in Android?

If the name is input from a textField I have tried something like this:

textField.addEventListener('change', function(e){

tabGroup.close(); 
tabGroup = Titanium.UI.createTabGroup();
tab1 = Titanium.UI.createTab({
        icon:'KS_nav_views.png',
        title: text.value,
        window:win1
});
tabGroup.addTab(tab1);
tabGroup.addTab(tab2);
tabGroup.open();

});

But I end up with a black screen when I try to type somethng in the textField. Suggestions, Anybody?

— asked October 14th 2010 by Uno Engborg
  • andriod
  • tab
0 Comments

1 Answer

  • It is only possible to change the name before you show the tab but not after.

    — answered October 14th 2010 by Jacob van Dam
    permalink
    0 Comments
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.