Doe's Android support multiple menu folder (e.g. like /drawable-hdpi and /drawable-mdpi)? If so what types are supported (land, xhdpi, swXXXdp)?
P.S. Sorry for such a goofy question...
Edit 1: For example I have different layouts. Depending on that I can have different menu resources, no? As a start it would be nice to have sooch folders:
The first two work fine... but when I try to add the other ones the app work instable on different devices.
There are three types of menus in Android: Popup, Contextual and Options. Each one has a specific use case and code that goes along with it. To learn how to use them, read on. As shown in the code snippet above, each menu item has various attributes associated with it.
Context Menu - the menu shown when you press and hold an item. Show activity on this post. Google provides an extensive summary of the different menu types in their documentation. The options menu is the primary collection of menu items for an activity.
Android Option Menus are the primary menus of android. They can be used for settings, search, delete item etc. When and how this item should appear as an action item in the app bar is decided by the Show Action attribute.
Yes. even in portrait and landscape modus:
menu-land-mdpi menu-port-mdpi
menu-land-hdpi menu-port-hdpi
menu-land-xhdpi menu-port-xhdpi
yes. Don't see any point not to support it, documentation here provides no restrictions on it (I myself at least have used -land qualifier)
The menu can be used like layout folder, you can add menu-land, menu-port ... also, you can use specific menu for multi langue, like menu-fr, menu-en to rearrange items based on phone language...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With