As far as I know, it's purely custom. However, it really doesn't look all that complicated. You just need to build a TableView, and add action handlers to the rows that would call your onOptionsItemSelected method (or go for individual handlers; you're not bound by the existing menu API). The background would just be a 9-patch drawable. The menu itself would just be added as a child (or already there and made visible) of the layer that includes the More button.
Experimentation shows that tapping on things that are not hidden by the menu still have their current action, but do dismiss the dialog. A TouchDelegate on the menu layer can handle that task, and then return false. It doesn't seem to have any trackball behavior at all, so there's room to improve it. On Mar 13, 1:30 pm, Chefgon <[email protected]> wrote: > I recently got a Nexus One, and it includes a very impressive photo > gallery application. Of particular interest is its menu, which is > quite a bit different and more intuitive than the one found elsewhere > in the system. Clicking on "More" or "Share" will load lists in > Windows-style pop-up menus instead of the full-screen lists that are > commonly seen elsewhere. > > Is this new menu control available in the Android 2.1 SDK for use in > my own applications? Or is it a totally custom implementation > internal to the Gallery app? I'd really like to use it but it seems > like it would be pretty complicated to build from scratch. -- 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

