To reproduce:
1. Copy this code into app.js
2. Run the app
3. Click the menu button.
4. Nothing will happen
var tabGroup = Ti.UI.createTabGroup();
var tab = Ti.UI.createTab();
var win = Ti.UI.createWindow({
backgroundColor: 'white',
fullscreen: false,
activity:{
onCreateOptionsMenu: function(e){
e.menu.add({title: 'here'});
}
}
});
tab.window = win;
tabGroup.addTab(tab);
tabGroup.open();
This code, outside of the tabgroup,. works as expected:
var win = Ti.UI.createWindow({
backgroundColor: 'white',
fullscreen: false,
activity:{
onCreateOptionsMenu: function(e){
e.menu.add({title: 'here'});
}
}
});
win.open();
This is as designed. Please read the section 'Menus on Tab Groups' in the documentation http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.Android.Menu
Closing ticket as invalid.