本文介绍了菜单按钮 - 的Galaxy Nexus的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想我的应用程序,以present我的Galaxy Nexus中的默认菜单按钮。
然而,当我打开我的应用程序将删除菜单按钮。我曾尝试以编程方式显示菜单按钮:首先,它尝试了OnCreateOptionsMenu,但在创建我的活动时,它并不运行。然后我想我的活动,但没有很好的onCreate方法中运行openOptionMenu()。


解决方案

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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-18 08:30