在动作条有三个点的动作溢出菜单? [英] Three-dot action overflow menu in actionbar?

查看:90
本文介绍了在动作条有三个点的动作溢出菜单?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到,在我的应用程序,当我添加一个菜单为不具有新设备硬件菜单按钮,它增加了三个点的动作条。但是,我看到一些应用程序,你可以这三个点实际移动到下方(在软件导航)
如何才能实现这一目标?我使用actionbarsherlock,以及如果有差别。

I noticed that in my app when I add a menu for new devices that dont have a hardware menu button it adds the three dots to the actionbar. However, I see on some apps that you can actually move those three dots to the bottom (on the software navigation) How can this be achieved? I am using actionbarsherlock as well if that makes a difference.

推荐答案

您可以通过设置您的 targetSdk 14,低于达到这个我说实现,因为这是不好的做法。对于拥有软件密钥,只要你使用一个主题的动作条的设备,它会显示在动作条菜单。如果你使用没有动作条(非全息)一个主题,它会显示三个点。

You can "achieve" this by setting your targetSdk below 14. I say "achieve", because this is bad practice. For devices that have software keys, as long as you're using a theme with the ActionBar, it will display the menu on the ActionBar. If you're using a theme without the ActionBar (non-Holo), it will display the three dots.

这三个点被讨厌。结果
这三个点是邪恶的。结果
这三个点必须。是。根除。

The three dots are hated.
The three dots are evil.
The three dots must. be. eradicated.

总之,我会避免。 :)

In short, I'd avoid it. :)

参见:<一href=\"https://plus.google.com/107708120842840792570/posts/1LKf12xfLPQ#107708120842840792570/posts/1LKf12xfLPQ\">Menu耻辱的按钮

这篇关于在动作条有三个点的动作溢出菜单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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