Search code examples
androidandroid-support-librarypopupmenu

PopupMenu in older android API


can I use PopupMenu in older API without using support library v7 ?

I am already using support library v4, but it's not enough for this

and what is the alternative, if I don't use it ?


Solution

  • PopupMenu is only available in API 11 or higher. As far as I can tell from the documentation it is not included in any support library and thus cannot be used on a lower api version. You should probably use an alternative like a Dialog or ContextMenu in those situations. It's not the same thing but kind of close.