Navigation drawer 导航抽屉

  • 在大屏幕上使用固定式的导航菜单
  • 在小屏幕上使用弹出式的导航菜单
  • 导航菜单可以设置为默认展开或收起
  • 导航菜单分两种:固定式和弹出式
  • 常用功能放在最上面,相似的功能放在一起
1 Standard navigation drawer标准导航抽屉 2 Modal navigation drawer 模态导航抽屉
1 Standard navigation drawer标准导航抽屉 2 Modal navigation drawer 模态导航抽屉
M2
M2
M3
M3
1 Container 2 Headline 3 Label text 4 Icon 5 Active indicator 6 Badge label text 7 Scrim
1 Container 2 Headline 3 Label text 4 Icon 5 Active indicator 6 Badge label text 7 Scrim

States  状态

1 Enabled 已启用 2 Hovered 悬停 3 Focused 已聚焦 4 Pressed 已按下
1 Enabled 已启用 2 Hovered 悬停 3 Focused 已聚焦 4 Pressed 已按下

Standard navigation drawer标准导航抽屉

Attribute  属性Value  值
Container height  容器高度100%
Container width  容器宽度360dp
Icon size  图标大小24dp
Active indicator height  活动指示器高度56dp
Active indicator shape  活动指示器形状28dp
Active indicator width  活动指示器宽度336dp
Horizontal label alignment水平标签对齐Start-aligned  起始对齐
Left padding  左内边距28dp
Right padding  右内边距28dp
Active indicator padding活动指示器内边距12dp
Padding between elements元素之间的间距0dp

Modal navigation drawer  模态导航抽屉

Attribute  属性Value  值
Container height  容器高度100%
Container width  容器宽度360dp
Icon size  图标大小24dp
Active indicator height  活动指示器高度56dp
Active indicator shape  活动指示器形状28dp
Active indicator width  活动指示器宽度336dp
Horizontal label alignment水平标签对齐Start-aligned  起始对齐
Left padding  左内边距28dp
Right padding  右内边距28dp
Active indicator padding活动指示器内边距12dp
Padding between elements元素之间的间距0dp

Modal navigation drawer  模态导航抽屉

Attribute  属性Value  值
Container height  容器高度100%
Container width  容器宽度360dp
Icon size  图标大小24dp
Active indicator height  活动指示器高度56dp
Active indicator shape  活动指示器形状28dp
Active indicator width  活动指示器宽度336dp
Horizontal label alignment水平标签对齐Start-aligned  起始对齐
Left padding  左内边距28dp
Right padding  右内边距28dp
Active indicator padding活动指示器内边距12dp
Padding between elements元素之间的间距0dp