在Android上实现多级选项菜单的最佳做法? [英] Best practices for implementing a multi-level Option Menu on Android?

查看:75
本文介绍了在Android上实现多级选项菜单的最佳做法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在将iPhone应用程序移植到Android.iPhone应用程序在屏幕底部具有一个自定义的全局导航菜单,将其移至Android时,建议将该自定义菜单替换为通用的Option Menu(通过设备上的Option键调用),以提供该菜单更原生的Android外观.

I'm currently working on a port of an iPhone app into an Android. The iPhone app has a custom global navigation menu at the bottom of the screen, and when bringing this over to Android, it was suggested to replace this custom menu with the generic Option Menu (invoked via the option key on the device) to give it a more native Android look and feel.

问题在于菜单本身具有多层(例如,三个主要选项(如A,B,C和子选项,如A1,A2,A3)).我环顾四周,但没有在Android应用程序中看到这种多级选项菜单,因此我正在寻找一些有关如何最好地实现这一目标的指南.

The issue is that the menu itself has several layers (e.g. Three main option like A, B, C, and sub-options like A1, A2, A3). I've looked around but have not seen this sort of multi-level option menu on Android apps, so am looking for some guidelines on how this may be best achieved.

我已经看到了一些关于自定义选项菜单的问题,例如: Android:自定义应用程序的菜单(例如背景色);他们似乎暗示本机框架不支持很多选项.

I've seen some questions on customizing the Option Menu such as this one; Android: customize application's menu (e.g background color); and they seem to suggest that the native framework doesn't support many options.

我应该查看一些侵入选项菜单的信息(这是个好主意吗?),还是查看其他一些修改应用程序流程的方法?试图了解什么是在Android上保持一致的用户体验的最佳方法,同时减少与iPhone应用程序的差异程度.

Should I be looking at a bit of hacking into the option menu (is this a good idea?), or looking at some other approach to modifying the app flow? Trying to understand what would be the best way to maintain a consistent user experience on Android, while reducing the level of variation from the iPhone app.

谢谢!

推荐答案

我环顾四周,但没有在Android应用程序中看到这种多级选项菜单,因此我正在寻找一些有关如何最好地实现这一目标的指南.

I've looked around but have not seen this sort of multi-level option menu on Android apps, so am looking for some guidelines on how this may be best achieved.

选项菜单支持子菜单,但仅深一层a>(即,菜单可以具有子菜单,但是子菜单不能具有子菜单).

Options menus support sub-menus, but only one level deep (i.e., the menu can have a sub-menu, but a sub-menu cannot have a sub-sub-menu).

这篇关于在Android上实现多级选项菜单的最佳做法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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