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?
1 Answer
-
It is only possible to change the name before you show the tab but not after.