简体   繁体   English

没有出现ActionBar溢出

[英]ActionBar overflow not appearing

I've followed along with the tutorial on http://developer.android.com/guide/topics/ui/actionbar.html and they mention the Action Overflow but they do not mention how to use it within your project. 我已经阅读了http://developer.android.com/guide/topics/ui/actionbar.html上的教程,他们提到了动作溢出,但是没有提到如何在项目中使用它。

I've seen some answers right here on SO but they say to get menu items to show up in the overflow menu (the menu that gets opened with you tap on the 3 horizontal tiny squares on the top right of your apps window) you need to set android:showAsAction, I have tried setting showAsAction with all possible values like always, ifRoom, never and um, collapseActionView but the overflow squares menu never shows and instead the popup menu shows on the bottom of the screen only when I press the menu button. 我已经在SO上看到了一些答案,但是他们说要使菜单项显示在溢出菜单中(随您打开,在您的应用程序窗口右上方的3个水平小方块上打开菜单),您需要要设置android:showAsAction,我尝试将showAsAction设置为始终,ifRoom,never和um,collapseActionView等所有可能的值,但是从不显示溢出方块菜单,而是当我按菜单时,弹出菜单才会显示在屏幕底部按钮。

How do I get my icons in the Action Overflow menu (the menu you press on the actionbar with the squares)? 如何在“动作溢出”菜单(在动作栏上按下带有正方形的菜单)中获取图标?

If your device has a dedicated menu button which you have indicated then the overflow menu will not shown. 如果设备具有指示的专用菜单按钮,则不会显示溢出菜单。 the menu button on your phone is the overflow menu 手机上的菜单按钮是溢出菜单

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM