有“背”是否合理? Android 应用程序中的按钮?

发布于 2024-10-15 00:23:12 字数 149 浏览 7 评论 0原文

请给我反馈,在 Activity 中使用后退按钮是否是一个好的做法,还是只是胡说八道?也许有些安卓手机没有返回键?还是所有型号都有?

后退按钮位于随后启动的任何活动中

Please give me feed back whether it's good practice to have a back button in activity, or is it just nonsense? Maybe some android phones don't have back/return key? Or do all models have them?

the back button is inside any activity that is lunched afterward

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

花辞树 2024-10-22 00:23:12

所有安卓手机都会有后退键。在我看来,放置后退按钮既丑陋又不必要;你最好用有用的东西来利用你的空间。有时你的老板会强迫你放一个后退按钮,通常是因为(遗憾的是)大多数 Android 草图都是基于 iPhone 的......所以我放一个后退按钮的唯一原因是为了不被解雇(好吧,有时被解雇比成为一个糟糕的程序员要好得多)。

All android phones will have the back key. Putting a back button is, IMO, ugly and unnecessary; you better use your space with useful stuff. Sometimes your boss will just obligate you to put a Back button, usually because (sadly) most of the android sketchs are based on iPhone's ones... so the only reason why I'd put a back button is to not get fired (well, sometimes it's much better getting fired than becoming a poor programmer).

哭泣的笑容 2024-10-22 00:23:12

堆积如山。我最近对此进行了一场辩论,我们讨论了 Android、iPhone 和 Windows Mobile 的设计隐喻。我们同意的底线是,您应该遵循您正在开发的设备的设计隐喻。对于Android,设计不应该包含后退按钮,因为用户已经习惯了物理后退按钮。如果需要的话,物理按钮也应该可以工作。

Piling on. I recently had a debate about this where we talked about design metaphors for android, iPhone, and windows mobile. The bottom line where we agreed is that you should follow the design metaphors for the device you are developing on. For android, the design should not include a back button because users are used to the physical back button. If one is required, the physical button should work as well.

北陌 2024-10-22 00:23:12

我在选项菜单中放置了一个Back 菜单项。我的应用程序中的选项菜单似乎已经包含其他类似导航的菜单项,因此其中有一个 Back 菜单项似乎是合理的。拥有明确标记的 Back 菜单项似乎对新手更友好,并且冗余似乎无害,除非选项菜单已经有大量菜单项。

OTOH,记住有一个选项菜单并记住如何访问它对于一些 Android 新手来说可能是一个挑战。是的,爸爸——我是说你。 :-)

同样,在“添加/编辑”屏幕上,我提供了“保存”和“取消”按钮,尽管“后退”按钮可能是(并且可能是)通常会)用于Cancel按钮。同样,有一个明确标记的 Cancel 按钮似乎对新手更友好且无害。 (无论如何,您打算如何处理保存按钮旁边的空白区域?)

I put a Back menu item in the option menu. The option menu in my apps seem to already contains other navigation-like menu items, so its seems reasonable to have a Back menu item in there. Having the explicitly labelled Back menu item there seems more newbie-friendly and the redundancy seems harmless there unless the option menu has a ton of menu items already.

OTOH, remembering that there is an option menu and remembering how to access it can be a challenge for some Android newbies. Yes Dad - I mean you. :-)

Similarly, on an Add/Edit screen, I provide Save and Cancel buttons, even though the Back button could be (and probably often will be) used to Cancel button. Again, having an explicitly labelled Cancel button seems more newbie-friendly and harmless. (What were you going to do with that empty space beside the Save button anyway?)

动次打次papapa 2024-10-22 00:23:12

所有想要进入 Android 市场的 Android 手机都需要有菜单、后退和主页按钮。这些是 El Goog 的规则。有些型号可能没有这些,但我敢打赌那只是少数设备。
我不确定蜂窝结构是否会改变,因为摩托罗拉 Xoom 没有这些按钮。

All android phones that want to have android market access need to have a menu, back and home button. those are the rules from El Goog. Some models may not have these but I bet that is a small number of devices.
I'm not sure if anything will change with honeycomb, seeing as Motorola Xoom has none of these buttons.

妄想挽回 2024-10-22 00:23:12

如果您有一个应用程序需要空间来排除“后退”功能,例如绘图应用程序中您想要显示整个屏幕的“撤消”功能,那么这是一个很好的快捷方式,但您最好有一个按钮,例如出色地。

If you have an app that needs the space to exclude a "back" functionality, such as an "undo" functionality in a drawing app where you want to show the whole screen, then it's a great shortcut, but you better have a button as well.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文