Why is tabGroup focus still broken in 1.7?

You must Login before you can answer or comment on any questions.

After reading through countless posts on problems with the focus issue on Android tabGroups it's still unclear as to whether this has been fixed in 1.7.1, although doesn't look like it has at all, even though the bug was reported over a year ago it seems. Kind of a disappointment after getting so far with my app only to discover this issue and now dead in the water until resolved.

tabGroup.addEventListener('focus', function() {
   Ti.API.info('tab changed to ' + tabGroup.activeTab);        
});
Sadly does not work. I'm hoping there is a work around but have found nothing so far. Does anyone know of anything?

Cheers.

1 Answer

Apparently KitchenSink is working fine as regards the tab's 'focus' event (tested on Galaxy Tab). Here is the code they use:

tabGroup.addEventListener('focus', function(e) { messageLabel.text = 'tab changed to ' + e.index + ' old index ' + e.previousIndex; [...]

Your Answer

Think you can help? Login to answer this question!