[android-developers] Re: Long Press - a SubMenu popup - how implement that?

2008-11-30 Thread Guillaume Perrot
Mark, the topic says submenu, but if you look at the first post it does deal with a context menu : When I long press a contact, then a sub menu pops up - to let me 'edit','remove' ... he just called it a submenu (because it looks exactly the same). So the standard way to do this is like I

[android-developers] Re: Long Press - a SubMenu popup - how implement that?

2008-11-29 Thread Guillaume Perrot
Activity.registerContextMenu(View); Then override onContextMenu methods. On Nov 29, 11:12 am, zLarry [EMAIL PROTECTED] wrote: help... On 11月29日, 下午2时02分, zLarry [EMAIL PROTECTED] wrote: Like android bundled contact applicaiton. When I long press a contact, then a sub menu pops up - to

[android-developers] Re: Long Press - a SubMenu popup - how implement that?

2008-11-29 Thread Mark Murphy
zLarry wrote: Like android bundled contact applicaiton. When I long press a contact, then a sub menu pops up - to let me 'edit','remove' ... how to implement that? I was confused for a long time! Use Menu#addSubMenu(). -- Mark Murphy (a Commons Guy) http://commonsware.com Android