On Sat, Dec 4, 2010 at 8:02 PM, David Karr <[email protected]> wrote:
> I don't necessarily have a need for this, but I noticed while reading
> through some of the Menu features that there wasn't an obvious way to
> populate a menu (context menu, for instance) just before drawing it. I
> believe this is a typical feature of other menu systems.  Is it
> possible to do this in Android menus?

Context menus are always populated just before they are displayed.

Option menus can either be cached (onCreateOptionMenu()) or generated
each time (onPrepareOptionMenu()).

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.3 Available!

-- 
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

Reply via email to