• 用标签把相关内容分类整理
  • 标签分为主要和次要两种
  • 标签栏可以左右滑动,可以添加任意数量的标签
  • 所有标签都在同一层级

Primary tabs  主标签页

1 Container 2 Badge(optional)3 icon(optional)4 Label 5 Divider 6 Active indicator

1 Primary tabs 主标签页 2 Secondary tabs 次标签页

Primary tabs states  主标签状态

1 Enabled (active destination)已启用(活动目标) 2 Hover (active destination)悬停(活动目标) 3 Focused (active destination)聚焦(活动目标) 4 Pressed (active destination)按下(活动目标) 5 Enabled (inactive destination)启用(非活动目标) 6 Hover (inactive destination)鼠标悬停(非活动目标) 7 Focused (inactive destination)聚焦(非活动目标) 8 Pressed (inactive destination)按下(非活动目标)

Secondary tabs  次标签页

1 Container 2 Badge(optional)3 icon(optional)4 Label 5 Divider 6 Active indicator

1 Enabled (active destination)已启用(活动目标) 2 Hover (active destination)悬停(活动目标) 3 Focused (active destination)已聚焦(活动目标) 4 Pressed (active destination)按下(活动目标) 5 Enabled (inactive destination)启用(非活动目标) 6 Hover (inactive destination)鼠标悬停(非活动目标) 7 Focused (inactive destination)聚焦(非活动目标) 8 Pressed (inactive destination)按下(非活动目标)

标签页被分成相等的部分,标签和图标垂直居中显示

主要标签的活动指示器在每一侧缩进 2dp,具有完全圆角半径,最小长度为 24dp。

Attribute  属性 | Value  值

Container height (label text only)容器高度(仅标签文本) | 48dp

Container height (icon and label text)容器高度(图标和标签文本) | 64dp

Icon size  图标大小 | 24dp

Divider height  分隔线高度 | 1dp

Primary active indicator height主要活动指示器高度 | 3dp

Secondary active indicator height次要活动指示器高度 | 2dp

Active indicator shape  活动指示器形状 | 3, 3, 0, 0

Active indicator minimum length活动指示器最小长度 | 24dp

Padding between inline icon and text内联图标与文本之间的间距 | 8dp

Padding between inline text and badge内联文本与徽章之间的间距 | 4dp

Overlap of badge on stacked icon堆叠图标上徽章的重叠情况 | 6dp