Android 导航抽屉应该在 ActionBar 上方吗?

Is Android Navigation drawer supposed to be over ActionBar?

如标题所示,我的应用使用抽屉式导航栏使用侧边菜单。我受到 this official google doc 的启发,它的导航抽屉可以通过从左向右滑动或单击 ActionBar 左上角修改后的主页图标来切换。

绘制导航抽屉时,Actionbar 中的抽屉图标将替换为后退按钮,该按钮会关闭抽屉,returns actionbar 将返回其原始状态。

但这就是我发现问题的地方。如 this different official google doc about material design 中明确指出抽屉应该在覆盖它的操作栏上方。

我检查了例如gmail 应用程序使用后者,即 ActionBar 上的抽屉。

我应该遵循准则#1 还是#2?

"The wonderful think about standards is that there are so many to choose from." — Admiral Grace Hopper

首先我要指出的是,您引用的第一个 link 关于通过单击图标关闭抽屉的讨论是预先 Material 设计的。因此,我的选择是采用 Material 特定于设计的建议。

现在看看这个:

The Many Faces Of Google's Hamburger Navigation Drawer | Android Police

Material 导航抽屉甚至在 Google 自己的应用程序中也不一致。

我认为一些 UX 人员认为除了滑动之外还应该有一种单点触摸方式来关闭抽屉。看起来甚至 Google 中的开发团队也无法达成共识。

因此请考虑您的所有选择,然后做对您的应用最有意义的事情。