ANDROID: Overflow not showing on action bar

回眸只為那壹抹淺笑 提交于 2019-12-11 23:45:14

问题


I need that if the tablet does not have the menu hardware button... it will show the menu button on the software buttons as you see here:

So I've googled a bit and found out that to display this button you only need to:

"set minSdkVersion to 10 or lower, set targetSdkVersion to 11, 12, or 13, and you do not use ActionBar, the system will add the legacy overflow button when running your app on a handset with Android 4.0 or higher."

"Set your android:targetSdkVersion and your android:minSdkVersion to something less than 11."

I've tried both but nothing works. I don't understand why. Maybe because the minimum SDK of my application is: API16 Android 4.1 ?

Can anybody give me an hint of why this is not working?


回答1:


That Works only when your application is backwards compatible with Ginger Bread (2.3).



来源:https://stackoverflow.com/questions/28367271/android-overflow-not-showing-on-action-bar

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