tidev / titanium-sdk

🚀 Native iOS and Android Apps with JavaScript
https://titaniumsdk.com/
Other
2.76k stars 1.21k forks source link

feat(android): collapse toolbar menu support #14093

Open Max87ZA opened 3 months ago

Max87ZA commented 3 months ago

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;
            }
        });
m1ga commented 3 months ago

@Max87ZA can you start from a clean master branch? You branch has other changes so it's not only the collapse toolbar menu

hansemannn commented 2 months ago

@Max87ZA Quick ping, thx!