Android Menu button on 4.0 devices

If my target SDK is set to 11 and I use Theme.Holo.NoActionBar, is there a way to get my menu? I use Theme.Holo for large screens such as tablets, but in the interest of saving space on the screen, I would not want to show the action bar on smartphones.

However, I don’t know if in this case some kind of “soft” menu button appears, as for applications oriented to earlier versions. I'm not sure if the emulator shows a realistic device screen layout, and I don't have a 4.0 phone (i.e. Nexus) to try it on (and I will have to wait a while to get it if AT&T ultimately gets Nexus )

+4
source share
2 answers

There is a soft button “Parameter Menu” that appears on device 4.0, see the attached screenshot. The three vertical dots in the lower right corner represent the options menu. They are displayed only if your application has an options menu.

! screenshot of weather app running on Galaxy Nexus

+2
source

Note that three points (aka overflow) will not be displayed at the bottom if you set targetSdkVersion> = 14.

+13
source

Source: https://habr.com/ru/post/1382986/


All Articles