Android的 - 对Galaxy Nexus的节目菜单按钮按钮、菜单、节目、Android

2023-09-06 02:30:55 作者:2B朝天的小青年~

我需要表现出对Galaxy Nexus的一些活动菜单按钮。 我无法找到如何做到这一点,因为它在默认情况下隐藏它。我不希望,因为它需要更多的空间,我想用其他事情来创建一个操作栏。 设置了机器人:targetSdkVersion当值低于14,这似乎显示菜单按钮,但除此之外,它隐藏它。 顺便说一句,该活动需要全屏幕,没有标题/行动吧。

i need to have the menu button shown for some activities on galaxy nexus . i can't find how to do that, since it hides it by default . i don't wish to create an action bar since it takes more space that i want to use to other things . when setting the "android:targetSdkVersion" value to lower than 14 , it seems to show the menu button , but otherwise, it hides it . btw, the activity needs to be full screen , with no title/action bars .

这是很奇怪的,这个按钮默认情况下不为这么多的地方(甚至是发射器)显示,并在一些地方确实存在。这样的按钮是一个非常基本的一个是这么多的Andr​​oid设备。谷歌决定,不仅如此,反而,开关按钮,更重要的是要显示,它的默认显示(不知道是否有可能将其隐藏,但我想不会,因为Home键不再做任何事情时长pressed)。

it is very weird that this button is not shown by default for so many places (even the launcher) , and on some places it does exist . such a button is a very basic one for so many android devices . google decided that not only that , but instead , the switching button is more important to be shown and it's shown by default (no idea if it's possible to hide it, but i guess not , since home button no longer does anything when long pressed) .

无论如何,请帮助我。我对Android的4挺新的。

anyway, please help me . i'm quite new on android 4 .

推荐答案

Menu(菜单)按钮已被德$ P $。您的选择是:1)在传统模式下(targetSdkVersion&LT运行; 14),2)使用操作杆带或不带溢出菜单按钮,3)在您的应用程序领域的地方添加菜单按钮。 4)不使用菜单,只需直接将其行动到你的应用领域。

The Menu button has been deprecated in ICS. Your options are 1) run in legacy mode (targetSdkVersion < 14), 2) use an action bar with or without an overflow menu button, 3) add a menu button somewhere in your app area. 4) not using a menu and just adding its actions directly to your app area.