与弹出式菜单动作条在屏幕底部 [英] ActionBar with popup menu at the bottom of the screen

查看:142
本文介绍了与弹出式菜单动作条在屏幕底部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用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"

你的菜单项

这篇关于与弹出式菜单动作条在屏幕底部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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