how can two sidemenus be used in codenameone?

2019-05-21 02:51发布

问题:

I want to add sidemenus at both left and right side.How can it be done in codenameone ?

getToolbar().addCommandToSideMenu(new Command(" Menu 1 "));

I can left sidemenu by using above code and i want to add that on right also.

回答1:

The Toolbar class no longer supports the right side menu. This functionality has always been problematic and was deprecated a while back. We might re-introduce it with the new "on top" side menu rewrite but right now that functionality is too new.