[android-developers] Re: Open SubMenu programatically

2008-11-24 Thread Guillaume Perrot
I don't think this is the right thing to do. A good UI should not pop the panel menu programmatically, meaning by that the user didn't press the menu button and does not expect the panel to pop (and probably doesn't want to). You may consider using context menus instead. For example if you want a

[android-developers] Re: Open SubMenu programatically

2008-11-24 Thread plusminus
I want to do so, because the ui-button is just a hot-button to some existing functionality in a submenu. Looks like I'll double-implement it using a SingleChoice-AlertDialog (its just some more or less trivial code) Best Regards, plusminus On Nov 24, 6:07 am, Guillaume Perrot [EMAIL PROTECTED]

[android-developers] Re: Open SubMenu programatically

2008-11-24 Thread Guillaume Perrot
I am not sure to understand what you want to do but if the aim is to have the submenu look and feel when you press on a button, you can programmatically call openContextMenu to achieve that. It uses the same menu classes, and a context menu looks exactly the same as a sub-menu. 2008/11/24