Android 3.0 statusbar & targetSdkVersion in manifest, menu button

一曲冷凌霜 提交于 2019-12-12 03:19:33

问题


I needed to dim Honeycomb's status bar on some screens of my app, so I used the View.setSystemUiVisibility(int) method. But in order for it to work I've changed the targetSdkVersion attribute to 11 in my manifest. Now everything works perfectly, but the "menu" button in the status bar has disappeared so I can't access some options. How do I show it while keeping targetSdkVersion=11?


回答1:


How do I show it while keeping targetSdkVersion=11?

You don't. Your menu will appear in your action bar. If you removed the action bar, put it back, or do not use an options menu.



来源:https://stackoverflow.com/questions/8646980/android-3-0-statusbar-targetsdkversion-in-manifest-menu-button

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