Menu button - galaxy nexus

僤鯓⒐⒋嵵緔 提交于 2019-12-24 10:57:46

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/11492559/menu-button-galaxy-nexus

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!