菜单按钮 - 的Galaxy Nexus [英] Menu button - galaxy nexus
问题描述
我想我的应用程序,以present我的Galaxy Nexus中的默认菜单按钮。
然而,当我打开我的应用程序将删除菜单按钮。我曾尝试以编程方式显示菜单按钮:首先,它尝试了OnCreateOptionsMenu,但在创建我的活动时,它并不运行。然后我想我的活动,但没有很好的onCreate方法中运行openOptionMenu()。
我希望我的Galaxy Nexus在我的应用程序,以present默认的菜单按钮
块引用>我不清楚什么是默认的菜单按钮的说法。
如果您有
安卓的minSdkVersion
或的android:targetSdkVersion
设置为11或更高时,溢出菜单按钮会出现在你的动作条的右侧。在大多数其他情况下,你应该在底部的导航栏中的传统菜单按钮。
有关更多信息,请阅读这个Android开发者博客帖子。
I want my application to present the default menu button within my Galaxy nexus. However when I load my app it removes the menu button. I have tried programmatically to show the menu button: first it tried the OnCreateOptionsMenu but it doesnt run when my activity is being created. Then I tried to run the openOptionMenu() within the onCreate method of my activity but no good.
解决方案I want my application to present the default menu button within my Galaxy nexus
I am uncertain what "the default menu button" is.
If you have
android:minSdkVersion
orandroid:targetSdkVersion
set to 11 or higher, the overflow menu button will appear on the right side of your action bar.In most other scenarios, you should get the legacy menu button in the bottom navigation bar.
For more, please read this Android Developers Blog post.
这篇关于菜单按钮 - 的Galaxy Nexus的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!