简体   繁体   English

如何在操作栏环境中处理菜单按钮单击

[英]How to handle menu button click in actionbar environment

As related to the new guidelines I replaced my standard menu with the actionbar. 与新准则相关,我将标准菜单替换为操作栏。 Due to consistent design I want to use the actionbar for all devices where it is possible to use the action bar. 由于设计的一致性,我想在可以使用操作栏的所有设备上使用操作栏。 But there are a lot of devices which support actionbar and still have a menu button. 但是有很多设备支持动作栏,但仍然具有菜单按钮。 How to handle this devices? 如何处理此设备? I think it feels wront in some way, if the user clicks on the menu button and nothing happens. 我认为,如果用户单击菜单按钮却什么也没发生,那一定程度上会感到不适。 I know, that I can catch the button click but what to do then? 我知道,我可以单击按钮,但是该怎么办? How to react on this click? 如何对此点击做出反应? Is there some method/usual way to point the user's attention to the actionbar? 有什么方法/通常的方法可以将用户的注意力吸引到操作栏上?

All of your action items, including overflow items, will appear when a user clicks the menu button. 当用户单击菜单按钮时,将显示所有操作项,包括溢出项。 It's already taken care of. 已经照顾好了

The menu options will pop up from the bottom as if using the old-style menu. 菜单选项将从底部弹出,就像使用旧式菜单一样。

If you have overflow menu items, then the menu button will open the overflow menu. 如果您有溢出菜单项,则菜单按钮将打开溢出菜单。 If you don't, then yes, the menu button will do nothing. 如果您不这样做,那么是的,菜单按钮将不起作用。 I don't think that this behaviour is strange to users - there are many apps without menus. 我认为这种行为对用户而言并不奇怪-许多应用程序都没有菜单。 Otherwise, I suppose you could have your action bar or your menu items flash a different colour briefly. 否则,我想您可以让操作栏或菜单项短暂闪烁另一种颜色。 But this is by no means standard. 但这绝不是标准。

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

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