gordonwd
gordonwd

Reputation: 4587

Android Menu Button on 4.0 Devices

If my target SDK is set to 11 and I am using Theme.Holo.NoActionBar, is there any way to get my menu to appear? I am using Theme.Holo for larger screens such as tablets, but purely in the interest of saving screen space, I'd like to not show the Action Bar on smartphones.

However, I don't know if some sort of "soft" menu button appears in this case like it does for apps targeted at 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., a Nexus) to try it on (and I'll have to wait a while to get one unless AT&T eventually gets the Nexus).

Upvotes: 4

Views: 6583

Answers (2)

user1139880
user1139880

Reputation: 1838

Note that the three dots (aka 'overflow') will not show up at the bottom if you set targetSdkVersion >= 14.

Upvotes: 13

Rajdeep Dua
Rajdeep Dua

Reputation: 11230

There is a soft Options Menu button which appears on a 4.0 device, see the attached screenshot. Three Vertical dots on the bottom right corner represent the Options Menu. They only appear if your app has an options menu.

!screenshot of weather app running on Galaxy Nexus

Upvotes: 2

Related Questions