不显示操作栏溢出 [英] Action bar overflow not displayed

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

问题描述

我设置了​​福尔摩斯的动作栏3项/图标。 运行在ICS模拟器,我只能看到2个图标。而且:无溢出菜单(这3点图标)! 我只得到了第3图标,如果我preSS手机的菜单按钮。

我一定要逼溢出图标,如果是的话我怎么可以这样做?

解决方案
  

我一定要逼溢出图标,如果是的话我怎么可以这样做?

所有你需要做的是有距离的 .ForceOverflow 主题之一,​​你的主题继承。请注意,这将只适用的的Andr​​oid 2.0 3.0 的。在 4.0 的本机动作条成分来代替,如果设备没有菜单键溢出项目时,才会显示。

I'm setting up an action bar with Sherlock with 3 items/icons. Running on a ICS emulator, I only can see 2 icons. And moreover: NO overflow menu (those 3 dots-icon)! I only get the 3rd icon if I press the menu button of the phone.

Do I have to force the overflow icon, and if so how can I do so?

解决方案

Do I have to force the overflow icon, and if so how can I do so?

All you need to do is have your theme inherit from one of the .ForceOverflow themes. Note this will only work for Android 2.0 and 3.0. In 4.0 the native ActionBar component is used instead, and the overflow item is only displayed if the device does not have a menu key.

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

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