Material design - Components– Steppers

Steppers - 步进

Steppers convey progress through numbered steps.

Steppers display progress through a sequence of logical and numbered steps. They may also be used for navigation.

Steppers may display a transient feedback message after a step is saved.

【翻译】
步进通过编号步骤传达进展。
步进器通过一系列逻辑和编号步骤显示进度。它们也可用于导航。
步进可以在保存步骤之后显示瞬时反馈消息。

Types of Steps - 步骤类型

Editable
Non-editable
Mobile
Optional

【翻译】
可编辑
不可编辑
移动
可选的

Types of Steppers - 步进类型

Horizontal
Vertical
Linear
Non-linear

【翻译】
水平
垂直
线性
非线性

Usage - 用法

Steppers display progress through a sequence by breaking it up into multiple logical and numbered steps.

【翻译】
步进器通过将序列拆分成多个逻辑和编号步骤来显示进度。

[图片上传失败...(image-6712f9-1552294246822)]
Steppers should be used when a field determines a subsequent field.

【翻译】
当字段确定后续字段时,应使用步进器。

Active stepper circle - 活动步进圈

24dp x 24dp
12sp Roboto Regular
Inherits primary color
Default color is Google Blue 500

【翻译】
24dp x 24dp
12sp Roboto常规
继承原色
默认颜色为Google Blue 500

Active step - 活动步

14sp Roboto Medium
87% black

【翻译】
14sp Roboto Medium
87%黑色

Connector line - 连接线

1dp border
Grey 400 color value

【翻译】
1dp边框
灰色400颜色值

Inactive stepper circle - 非活动步进圈

24dp x 24dp
12sp Roboto Regular
100% white
38% black

【翻译】
24dp x 24dp
12sp Roboto常规
100%白色
38%黑色

Inactive steps - 非活动步骤

14sp Roboto Regular
38% black

【翻译】
14sp Roboto常规
38%黑色

Avoid using steppers to break up sections in a short form, or multiple times on one page.

【翻译】
避免使用步进器以短格式分割节,或在一页上多次分割节。

[图片上传失败...(image-a65af8-1552294246822)]
Don't.
Don’t embed steppers within steppers or use multiple steppers on one page.

【翻译】
错误的示范
不要在步进器中嵌入步进器或在一页上使用多个步进器。

Types of steps - 步骤类型

Editable steps - 可编辑的步骤

Editable steps allow users to return later to edit a step. These are ideal for workflows that involve editing steps within a session.

【翻译】

可编辑的步骤允许用户稍后返回以编辑步骤。这些是理想的工作流涉及会话中的编辑步骤。

image

Editable steps can be edited within a session.

【翻译】
可以在会话中编辑可编辑的步骤。

**Non-editable steps - 不可编辑的步骤 **

Non-editable steps should be used when:

Users cannot edit a step later
Step editing poses a distraction risk to form completion

【翻译】
在以下情况下应使用不可编辑的步骤:
用户以后无法编辑步骤
步骤编辑带来分心的风险,形成完成

image

Non-editable steps cannot be edited once completed.

【翻译】
不可编辑的步骤一旦完成就无法编辑。

Mobile steps - 移动步骤

[图片上传失败...(image-d20c92-1552294246822)]
Mobile step text
Steps displayed at the top in text

【翻译】
移动步骤文本
显示在文本顶部的步骤

[图片上传失败...(image-1d1b1c-1552294246822)]
Mobile step dots
Use dots when the number of steps isn’t large.

【翻译】
移动步骤点
当步数不大时使用点。

image

Mobile step progress bar
Use a progress bar when there are many steps, or if there are steps that need to be inserted during the process (based on responses to earlier steps).

【翻译】
移动步进度栏
如果有很多步骤,或者在过程中需要插入的步骤(基于对早期步骤的响应),请使用进度条。

**Optional steps - 可选步骤 **

Optional steps within a linear flow should be marked as optional.

【翻译】
线性流中的可选步骤应标记为可选。

[图片上传失败...(image-6c3ffe-1552294246822)]
Mark optional steps in linear flows as optional.
Optional steps
12sp Roboto Regular
54% black

【翻译】
将线性流中的可选步骤标记为可选。
可选步骤
12sp Roboto 常规
54%黑色

Types of steppers - 步进机的类型

Horizontal steppers - 水平步进

Horizontal steppers are ideal when the contents of one step depend on an earlier step.

Avoid using long step names in horizontal steppers.

【翻译】
当一个步骤的内容取决于较早的步骤时,水平步进器是理想的。 避免在水平步进中使用长步名称。

[图片上传失败...(image-35d25c-1552294246822)]
On horizontal steppers, the step name and numbers appear on a horizontal bar, which can be fixed to the top of the page when scrolling down.

【翻译】
在水平步进器上,步骤名称和数字显示在水平条上,当向下滚动时,可以将其固定在页面顶部。

Vertical steppers - 垂直步进

Vertical steppers are designed for narrow screen sizes. They are ideal for mobile.

【翻译】
垂直步进器设计用于窄屏幕尺寸。它们是移动的理想选择。

image

Vertical steppers can be used in mobile as-is. Simply ensure that the contents for each step are responsive.

【翻译】
垂直步进器可以直接用于移动。只需确保每个步骤的内容是响应。

Linear steppers - 线性步进

Linear steppers require users to complete one step in order to move on to the next.

【翻译】
线性步进器需要用户完成一个步骤才能移动到下一步。

image

Each linear step must be completed before proceeding to the next one.

【翻译】
每个线性步骤必须在继续下一个步骤之前完成。

Non-linear steppers - 非线性步进器

Non-linear steppers allow users to enter a multi-step flow at any point.

【翻译】
非线性步进器允许用户在任何点输入多步骤流。

[图片上传失败...(image-75f666-1552294246822)]
Non-linear steps may be completed in any order.
Inactive stepper circle
24dp x 24dp
12sp Roboto Regular
Text 100% white
38% black

Inactive steps
14sp Roboto Regular
54% black

【翻译】
非线性步骤可以以任何顺序完成。
非活动步进圈
24dp x 24dp
12sp Roboto常规
文字100%白色
38%黑色
非活动步骤
14sp Roboto常规
54%黑色

Alternative labels - 替代标签

image

Alternative label placement

【翻译】
替代标签放置

[图片上传失败...(image-edec69-1552294246822)]
Alternative label placement with an optional step

【翻译】
可选步骤的替代标签放置

Stepper feedback - 步进反馈

Steppers may display a transient feedback message after a step is saved. Stepper feedback should only be used if there is a long latency between steps.

【翻译】
步进可以在保存步骤之后显示瞬时反馈消息。只有在步骤之间存在长延迟时,才应使用步进反馈。


This stepper displays a transient feedback message after a step is saved.

【翻译】
此步进器在保存步骤后显示瞬时反馈消息。

Specs - 规格

Standard stepper - 标准步进

[图片上传失败...(image-47a107-1552294246822)]
Step height: 72dp
Icon top, bottom, and left padding: 24dp
Icon right padding: 8dp

【翻译】
步高:72dp
图标顶部,底部和左边填充:24dp
图标右边填充:8dp

Optional step - 可选步骤
[图片上传失败...(image-8a28a2-1552294246822)]
Step height: 72dp
Icon left and right padding: 8dp
Label right padding: 8dp

【翻译】
步高:72dp
图标左右填充:8dp
标签右边填充:8dp

Multi-line error state - 多行错误状态

Alternative label - 替代标签
[图片上传失败...(image-211a7d-1552294246822)]
Step height: 104dp
Icon left and right padding: 8dp
Label top padding: 16dp
Icon and label padding from edge: 24dp

【翻译】
步高:104dp
图标左右填充:8dp
标签顶部填充:16dp
图标和标签填充从边缘:24dp

image

Alternative label placement with optional step
Icon left and right padding: 8dp
Step left and right padding: 16dp
Label bottom padding: 24dp
Icon and label padding from screen edge: 24dp

【翻译】
可选步骤的替代标签放置
图标左右填充:8dp
步骤左,右填充:16dp
标签底部填充:24dp
图标和标签填充从屏幕边缘:24dp

image

Alternate label placement error state

【翻译】
备用标签放置错误状态

Non-linear steppers - 非线性步进器

Hover and pressed states

【翻译】
悬停和按下状态

[图片上传失败...(image-923100-1552294246822)]
Hover

【翻译】
徘徊

image

Hover

【翻译】
徘徊

[图片上传失败...(image-e006ef-1552294246822)]
Pressed

【翻译】
按下

[图片上传失败...(image-166d59-1552294246822)]
Pressed

【翻译】
按下

Background - 背景
6% black

【翻译】
6%黑色

Stepper circle - 步进圈
24dp x 24dp
12sp Roboto Regular
Text 100% white
38% black

【翻译】
24dp x 24dp
12sp Roboto常规
文字100%白色
38%黑色

Vertical steppers - 垂直步进

[图片上传失败...(image-92f9c2-1552294246822)]
Vertical stepper, with sub-steps
Icon left padding: 24dp
Icon alignment with label: Center vertical
Icon top and bottom padding: 8dp
Label top padding: 24dp
Label bottom padding: 16dp
Vertical space between steps: 48dp
Button height: 48dp
Button top padding: 16dp

【翻译】
垂直步进,具有子步骤
图标左边填充:24dp
图标与标签对齐:垂直居中
图标顶部和底部填充:8dp
标签顶部填充:24dp
标签底部填充:16dp
步骤之间的垂直间距:48dp
按钮高度:48dp
按钮顶部填充:16dp

image

Example of a vertical stepper

【翻译】
垂直步进器示例

Mobile steppers - 移动设备步进

image

Icon top and bottom padding: 8dp
Label top padding: 24dp
Label button padding (no sublabel): 16dp
Vertical space below inactive step: 40dp
Vertical space below active step: 48dp
Button height: 48dp

【翻译】
图标顶部和底部填充:8dp
标签顶部填充:24dp
标签按钮填充(无子标签):16dp
无效步骤下的垂直空间:40dp
活动步幅以下的垂直间距:48dp
按钮高度:48dp

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 194,457评论 5 459
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 81,837评论 2 371
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 141,696评论 0 319
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 52,183评论 1 263
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 61,057评论 4 355
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 46,105评论 1 272
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 36,520评论 3 381
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 35,211评论 0 253
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 39,482评论 1 290
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 34,574评论 2 309
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 36,353评论 1 326
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 32,213评论 3 312
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 37,576评论 3 298
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 28,897评论 0 17
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 30,174评论 1 250
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 41,489评论 2 341
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 40,683评论 2 335

推荐阅读更多精彩内容