菜单按钮 - 的Galaxy Nexus [英] Menu button - galaxy nexus

查看:139
本文介绍了菜单按钮 - 的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 or android: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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆