Google: 再见 Menu 按键

Google 在 Android Developer Blog 发表了一篇题为 “Say Goodbye to the Menu Button” 的文章。

文章主要是提醒开发人员,随着 Android 4.0 手机陆续推出,手机上不会再有 Menu 按键。App 内的 Menu 亦会逐渐淡出,取而代之的是 Action Bar。

In order to provide the most intuitive and consistent user experience in your apps, you should migrate your designs away from using the Menu button and toward using the action bar.


是 Action Bar, 不再是 Menu
Android Action Bar
Google 一再强调这并不是 Menu Button, 而是 Action Bar/Action Overflow Button。在 Action Bar 上,视乎 App 的需要,会有一个个不同的按钮操作,例如有:搜寻,分享,储存等。而当 Action Bar 空间不足时,就会出现”三点”按钮,也就是 Action Overflow Button。

you should stop thinking about your activities using a “menu button” at all. Your activities should provide buttons for important user actions directly in the action bar (or elsewhere on screen).

改善 旧Apps Menu 按钮
Overflow

文章亦讲述在 Android 4.0 系统下操作旧 Apps 时,会在下方的系统按钮右方出现 “三点” 按钮。这是 Android 新系统的兼容方式,以让旧 Apps 可以在新系统下可完整操作。但 Google 强调这只是兼容方式,开发商应改善 Apps并改用 Action Bar 取代 Menu,让用家有更好的操作体騇。

This is a compatibility behavior for legacy apps designed to ensure that apps built to expect a Menu button remain functional. However, this button doesn’t provide an ideal user experience… So you should update your legacy apps to remove the action overflow from the navigation bar

文章亦有提及,在不适用时,如何隐藏 Action Bar。

各位 Developers 可以到 Developer Blog 查看详情,内里亦有指引讲述各个做法。
http://android-developers.blogspot.com/2012/01/say-goodbye-to-menu-button.html

发布留言