It is possible. onCreateContextMenu is called every time the menu is about to be shown. One can enable / disable item groups as needed.
-- Kostya 16.03.2011 11:54, Goodwin пишет: > " want that when i click on any of item of my ListView, > it will display a different context menu corresponding to different > List item." > How could you do that? I think it is impossible. It is context > menu ,not nomal menu. > > On 3月15日, 下午2时35分, Puneet Agarwal <[email protected]> > wrote: >> Hey Android Developers, >> >> I am facing a problem in my application. I want to fetch the group id >> of ContextMenu. Is there any function available, because i can't find >> any function. I want that when i click on any of item of my ListView, >> it will display a different context menu corresponding to different >> List item.Please help me out. If you provide any example code, then it >> will be appreciated. >> >> Thanks in advance -- Kostya Vasilyev -- http://kmansoft.wordpress.com -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

