titanium-sdk
titanium-sdk copied to clipboard
feat(android): collapse toolbar menu support
Adds support for toolbar's menu to Collapse toolbat Usage: Create your Collapse toolbar as usual and then add to your controller:
$.collapsingToolbar.addMenuItem(0,` 'Item title', false);
$.collapsingToolbar.setOnMenuItemClickListener(function(e) {
Ti.API.info("e.menuItemId: "+e.menuItemId);
switch (e.menuItemId) {
case 0:
Ti.API.log("Menu 0 clicked");
break;
}
});