Serj Lotutovici
Serj Lotutovici

Reputation: 4380

Android Different Menu Resources

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.

Upvotes: 7

Views: 1150

Answers (3)

Festus Tamakloe
Festus Tamakloe

Reputation: 11310

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

Upvotes: 4

Anis BEN NSIR
Anis BEN NSIR

Reputation: 2555

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

Upvotes: 1

sandrstar
sandrstar

Reputation: 12643

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)

Upvotes: 1

Related Questions