ANDROID:溢出没有显示在操作栏 [英] ANDROID: Overflow not showing on action bar

查看:128
本文介绍了ANDROID:溢出没有显示在操作栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要的,如果平板电脑没有菜单硬件按钮......它会显示软件上的按钮菜单按钮,你在这里看到的:

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:

所以我GOOGLE了一下,发现,显示这个按钮,你只需要:

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

设置的minSdkVersion为10或更低,设置t​​argetSdkVersion为11,12,或13,你不要用动作条,系统将采用Android 4.0或在手机上运行的应用程序时添加的遗产溢出按钮更高。

设置你的android:targetSdkVersion和你的android:的m​​inSdkVersion的东西小于11

我都试过,但没有任何工程。我不明白为什么。也许是因为我的应用程序的最小SDK是:API16的Andr​​oid 4.1

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 ?

任何人都可以给我一个提示这是为什么不工作?

推荐答案

的作品,只有当你的应用程序与姜饼(2.3)向后兼容。

这篇关于ANDROID:溢出没有显示在操作栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆