- 用标签把相关内容分类整理
- 标签分为主要和次要两种
- 标签栏可以左右滑动,可以添加任意数量的标签
- 所有标签都在同一层级
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 主标签状态
Secondary tabs 次标签页
1 Container 2 Badge(optional)3 icon(optional)4 Label 5 Divider 6 Active indicator
主要标签的活动指示器在每一侧缩进 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