- 在中等、扩展、大型或超大窗口尺寸下使用导航栏
- 可包含 3 至 7 个目的地,外加一个可选的悬浮操作按钮
- 始终将导航栏置于同一位置,即使在应用的不同屏幕上也是如此
States 状态
Attribute 属性 | Value 值
Container width 容器宽度 | 80dp
Container shape 容器形状 | 0dp corner radius 圆角
Destination item height 目标项高度 | 56dp
Active indicator height 活动指示器高度 | 32dp
Active indicator width 活动指示器宽度 | 56dp
Active indicator shape 活动指示器形状 | 16dp corner radius 圆角半径
Active indicator height (no destination label text)活动指示器高度(无目标标签文本) | 56dp
Active indicator shape (no destination label text)活动指示器形状(无目标标签文本) | 28dp corner radius 圆角半径
Icon size / Menu icon size图标大小 / 菜单图标大小 | 24dp
Badge shape 徽章形状 | 3dp corner radius圆角半径
Badge size 徽章尺寸 | 6dp
Large badge shape 大型徽章形状 | 8dp corner radius圆角半径
Large badge size 大徽章尺寸 | 16dp
Padding between edge and active indicator边缘与活动指示符之间的填充 | 12dp
Padding between active indicator and label text活动指示器与标签文本之间的间距 | 4dp
Padding between destination items目标项目之间的填充 | 12dp
Configurations 配置
可以将悬浮操作按钮(FAB)添加到导航栏中。在本示例中,导航项垂直居中对齐,但也可以与导航栏边缘顶端对齐或底端对齐。
1 Default 默认 2 With a menu and FAB带有菜单和浮动操作按钮3 With a menu 带有菜单4 With aFAB 带有浮动操作按钮