你知道Modality,Mode和Modal的区别么?

前情提要:大佬派我制定规范,做规范不是什么难事,难得就是要为这些规范编理由...况且像我这么做事严谨的人,怎么能随便的就将规范输出于众呢?所以在正式开始前,找了一些相关资料,所以在内容的正式输出前有了接下来的内容...(废话结束)

在阅读这篇翻译文章之前,我们先理清一下这几个词的概念:Modality,Mode,Modal。

Modality

Modality是名词,形式、模态;在iOS规范里App Architecture下对Modality的描述是:

Modality creates focus by preventing people from doing other things until they complete a task or dismiss a message or view. Action sheets, alerts, and activity views provide modal experiences.When a modal view appears onscreen, the user must make a choice by tapping a button or otherwise exiting the modal experience.

模态通过阻止用户做其他事情,直到用户完成一个任务或关闭信息或试图来创造焦点。动作面板、警告框、活动视图提供模态的体验。当模态的视图出现在屏幕上,用户必须通过点击按钮或以其他方式退出模态体验来做出选择。

Modal

而Modal呢?Modal是形容词,模式的、情态的、形式的。如上面iOS规范里有所提及的Modal,后面都会跟一个词,如Modal experiences, Modal view等,在维基百科里有一个词叫Modal widow,对此描述如下:

In user interface design for computer applications, a modal window is a graphical control element subordinate to an application's main window. It creates a mode that disables the main window, but keeps it visible with the modal window as a child window in front of it. Users must interact with the modal window before they can return to the parent application. This avoids interrupting the workflow on the main window.  Modal windows are sometimes called heavy windows or modal dialogs because they often display a dialog box.

在给计算机应用的用户界面设计中,模态窗口是图形控制的元素,从属于一个应用的主窗口。它创建了一个使主窗口被禁用的模式,但在模态窗口作为前面的子窗口时保持可见。用户在返回主应用之前必须与模态窗口进行交互。这个避免了打断主要窗口的工作流,模态窗口因为经常被显示为一个对话盒子,所有有时候被称为重窗口或者模态对话框。(摘自维基百科)

Mode

Mode我觉得这个比较好理解些,模式。生活中经常遇到的,如Fast mode(快捷模式),打游戏里面还有什么难易模式等。维基百科官方描述如下:

In user interface design,a mode is a distinct setting within a computer program or any physical machine interface, in which the same user input will produce perceived results different to those that it would in other settings. The best-known modal interface components are probably the Caps lock and Insert keys on the standard computer keyboard, both of which put the user's typing into a different mode after being pressed, then return it to the regular mode after being re-pressed.

在用户界面设计中,模式就是在电脑程序里或任何一个物理机器界面里的不同设置。在不同的设定下,同样的用户输入将会接收到不同的结果。总所周知的模态界面组件可能是标准计算机键盘上的大写锁定和插入键,两者都在按下后将用户的键入设置为其他模式,然后在重新按下后将其返回到常规模式。

总结

所以简而言之,在Modality模态下,有很多模态的控件,如Modal view, Action sheets, Alerts等。而模式只是一种基于软件或硬件在不同设置下的不同输出而已。在了解了基础内容之后,我们可以接下来看看另一篇翻译:模态和非模态对话框:什么时候(什么时候不)使用它们?

你可能感兴趣的:(你知道Modality,Mode和Modal的区别么?)