问题
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