• 开关适用于需要单独开启或关闭的选项
  • 当需要修改设置时,开关是最直观的选择
  • 设计开关时要让用户清楚地知道当前是开启还是关闭状态

M2

M3

Adjacent text label color 相邻文本标签颜色

标签上的文字颜色要保持一致,不管你是否正在点击或使用这个标签和其他部分。

文本标签用于表面,辅助文本可使用表面体

States  状态

1 Enabled 已启用 2 Hover鼠标悬停 3 Focus 聚焦 4 Pressed 按下的 5 Disabled已禁用

Element  元素 | Attribute  属性 | Value  值

Track  轨道;追踪;跟踪 | Height  高度 | 32dp

| Width  宽度 | 52dp

| Outline width  轮廓宽度 | 2dp

Handle  手柄 | Height (unselected)  高度(未选中) | 16dp

| Height - with icon  高度 - 带图标 | 24dp

| Height (selected)  高度(选中) | 24dp

| Height (pressed)  高度(按下) | 28dp

| Width (unselected)  宽度(未选中) | 16dp

| Width - with icon  宽度 - 带图标 | 24dp

| Width (selected)  宽度(选中) | 24dp

| Width (pressed)  宽度(按下) | 28dp

State layer  状态层 | Size  尺寸 | 40dp

Target  目标 | Size  尺寸 | 48dp

Icon  图标 | Size (selected)  尺寸(已选) | 16dp

Icon  图标 | Size (unselected)  尺寸(未选) | 16dp  16 密度无关像素

Configurations  配置

1 Without icons 无图标 2 Icon on selected switch 选中开关上的图标 3 Icon on selected andunselected switch选中与未选中开关上的图标