2 个或更多浮动操作按钮之间的距离是多少?

What is the distance between 2 or more Floating Action Button?

我在我的应用程序上添加了 2 个 FAB(例如 Google 地图应用程序,请参见下面的屏幕截图)我想知道 2 个 FAB 之间是否有特定的距离(来自 Google 设计模式、文档、圣经或其他任何东西)或者是否由开发人员决定这些按钮之间的距离。

查看 FAB 上的 Google 开发人员文档,对于 FAB 之间的间距没有明确的答案,但它指出

The floating action button should be placed 16dp min from the edge on mobile and 24dp min on tablet/desktop.

了解这一点后,您可以使用 16dp/24dp 规则 space 相应地设置按钮。


旁注

当我与 Google Play 编辑委员会一起为功能准备我的应用程序时,他们指定 FAB 应限制为每个屏幕一个。如果您确实需要多个,可以创建一个扩展菜单。像这样