问题描述
如果我的目标SDK设置为11,我使用Theme.Holo.NoActionBar,有没有什么办法让显示我的菜单?我使用Theme.Holo的大屏幕,例如平板电脑,而纯粹是节省屏幕空间的利益,我想在智能手机上不显示操作栏。
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.
不过,我不,如果某种软菜单按钮出现在这种情况下,像它的定位于早期版本的应用程序知道。我不知道,如果仿真器显示一个现实的设备屏幕的布局,而我没有4.0的手机(即一台Nexus)来尝试它(我将不得不等待一段时间才能得到一个,除非AT&放大器;最终也得到了Nexus)。
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).
推荐答案
有出现4.0设备上的软选项菜单按钮,见所附的截屏。在右下角再present三个垂直的点的选项菜单。如果你的应用程序有一个选项菜单,他们才会出现。
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.
!
!
这篇关于在4.0设备Android菜单按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!