与弹出式菜单动作条在屏幕底部弹出式、菜单、屏幕、动作

2023-09-12 03:12:28 作者:啭捔遇菿殇

我使用ActionBarSherlock,我不知道是否有可能有在屏幕另外底部的弹出式菜单?我想这个菜单,当用户点击默认菜单按钮(硬件老年人手机)的出现。

I'm using ActionBarSherlock and I wonder if it is possible to have a popup menu at the bottom of the screen additionally? I'd like this menu to appear when the user clicks the default menu button (hardware for older mobiles).

我怎样才能做到这一点?

How can I do this?

推荐答案

在动作条菜单溢出自动项菜单中的弹出更换,如果你有一个硬件菜单按钮。 http://developer.android.com/design/patterns/compatibility.html

The actionbar menu overflow is automatically replaced by items in "menu" popup if you have a hardware menu button. http://developer.android.com/design/patterns/compatibility.html

为了项出现在那里,你应该设置

In order for items to appear in there you should set

android:showAsAction="never"

你的菜单项