Home » Android » android pop up menus

android pop up menus

Posted by: admin June 15, 2020 Leave a comment

Questions:

I cannot find either one of these two views in the source, but have seen them both in many apps. Can anyone please tell me what they are called?

Thanksenter image description here

How to&Answers:

The second one is an options menu from the action bar. I think it is implemented as a ListPopupWindow.

The first one is not part of the Android SDK, though there are various implementations floating around. Here is an example of one designed for use with Google Maps, for example. Here is one designed for the “quick actions” pattern.

Answer:

I’m going to assume that they’re custom made ones, so you won’t find them in the standard Android libraries.

Answer:

The second one I think is just the way that the default menu looks in ICS (and honeycomb for that matter). If you build for 4.0 and include the code for an options menu I think you’ll get that UI by default. If you are looking to customize it check out this page http://developer.android.com/guide/topics/ui/actionbar.html and pay close attention to the “Adding drop down navigation” section.

The first one is not a part of the android UI, that is something specific to the facebook app.