经典用户界面之“纲领”

Classic user interface principals

经典用户界面之“纲领”

 

Here are some core guidelines which every user interface should follow. These guidelines

are what will keep your users happy, and ensure your application is successful. Throughout

the rest of the book, we'll be walking through these guidelines with practical examples of

improvements that can be made to a user interface.

 

这里是一些所有用户界面都应该遵守的核心准则这些准则会你的用户高兴,并确保您的应用可能成功。

在这本书的其余部分,我们将通过构建用户界面的实例来逐步了解这些原则。

Consistency

协调一致

This is the cornerstone of good user interface design. A button should look like a button.

Make sure that the layout of each screen has a relationship with every other screen in your

application. People often mistake this principle for "stick to the platform look and feel". Look

and feel is important, consistency mostly applies to the layout and overall experience of the

application, rather than the color scheme.

 

这是优质用户界面设计的基础。一个按钮看起来就应该像个按钮。你应该确保在应用中,每个页面的组织安排

同其他所有页面保持一种关连。人们通常将这一原则错误的理解为“保持平台外观和感觉一致”。外在观感是很

重要,但协调更应该表现在应用的组织和总体使用经验上,而不仅仅局限在颜色方案中。

Recycling your interface

循环使用你的界面

The easiest way to maintain a consistent user interface, is to recycle as much of it as possible.

At first glance, this suggestion looks merely like a "good object-oriented" practice. However,

a closer look will reveal ways to reuse graphical widgets in ways you hadn't thought of. By

changing the visibility of various widgets, or you can reuse an edit screen to view list items

of the intended type.

 

维护一个协调一致的用户界面最简单的办法就是,尽可能地重复使用它。乍一看,这个建议好像是一个良好的面

对象“的做法。然而,仔细推敲你就会发现一些之前从未想到过重新利用这些图形组件的方法。通过改变不同

的可视,或者可以重复使用一个编辑页面查看预期类型的列表元素。

Simplicity

简洁

This is especially important in a phone-based application. Often, when a user encounters a

new application, it's because they are looking for something. They may not have the time

(or more often patience) to learn a new user interface. Make sure that your application

asks for as little as possible, and guides the user to the exact information they want in as

few steps as possible.

 

这对于手机应用尤其重要。用户在初次接触一个新应用时,通常是他们在寻找一些东西。他们没有时间(通常

是没耐心)学会如何使用一个新的界面。应该确保你的应用需要尽可能少的询问,并且能够在尽可能少的步骤

内给于用户准确的信息指导。

 

The Zen approach

 

禅道

 

Generally, when you are using a mobile device, your time is limited. You may also be using

an application in less-than-ideal circumstances (perhaps, in a train). The lesser information

a user needs to give an application, and the lesser they need to absorb from it, the better.

Stripping away options and information also leads to a shorter learning-curve.

 

一般情况下,在你使用手持设备时,你的时间很有限。你或许会在一个不那么理想的环境下操作一个应用

(比如,在火车上)。在操作中用户所需输入的信息越少,或者需要从中理解的信息越少,越好。避免过多的

选项和信息会使得学习曲线更短。

 

Android's hidden menu

安卓的隐藏菜单

A very useful feature of Android is the hidden menu structure. The menu is only visible

when the user presses the "Menu" button, which would generally mean, they're looking

for something that isn't currently on the screen. Typically, a user shouldn't need to open a

menu. However, it's a good way of hiding advanced features until they are needed.

 

安卓一个非常有效的特性就是隐藏菜单结构。菜单只在用户点击“菜单”按钮时才会出现,这通常意味着,他们在

寻找目前屏幕上没有的东西。平时,用户不需要开着菜单。将用户不需要的高级属性隐藏起来,这当然是一个好

办法。

Feedback

反馈

Feedback is what makes a touchscreen device exciting. When you drag an object, it sticks to

your finger across the screen until you let go of it. When the users puts their finger on your

application, they expect some reaction. However, you don't want to get in their way—instead

of showing an error message when they touch a button, disable the button until it's valid to

use, or don't show it at all.

 

及时反馈让触屏设备很“赞”。当你拖拽一个物体,它会在显示器上跟随你的手指移动,只到你放开它。当用户把

手指放在你的应用上,他们期望着有所反应。当然了,你也可以不用总“惯着”他们---与其在他们点击按钮时弹出

个错误信息窗口,不如让无用的按钮失效,或者干脆别显示它。

Location and navigation

 

定位与导航

 

When you're in a place you've never been to previously, it's easy to get disoriented, or lost.

The same is true for a piece of software. Just because the application makes sense to you,

the developer, it doesn't mean it seems logical to your user. Adding transition animations,

breadcrumbs, and progress gauges help the user to identify where in the application they

are, and what's happening.

 

当你在一个你从没去过的地方很容易无所适从或迷路。对于一个软件来说也是一样。仅仅因为应用程序

你这个开发者有意义,并不代表着你的用户也会觉得合逻辑。添加过渡动画,当前位置导航栏,和进度条来

用户确定他们在何处,以及发生了什么

The road to recovery

如何处理意外

A common way to tell users that something is wrong on a desktop application, or on the web

is to open an error dialog. On a mobile device, people want smoother use of an application.

While in a normal application you may inform the user that they selected an invalid option,

in a mobile application, you generally want to make sure they can't select that option in the

first place. Also, don't make them scroll through huge lists of options. Instead, allow them to

filter through the list using an auto-complete or something similar.

 

在桌面或者网页程序中,一般在发生错误时通知用户的方法是打开一个错误对话框。在手持设备中,用户期望能够

更流畅的操作应用。在一个正常的应用程序中,当用户选择了一个无效的选项时你可以告知他们,但在移动应用程

中,您最好确保他们之前就无法选择这个选项此外,不要让用户在一个超长的下拉菜单里选择。相反,让他们

使用自动过滤列表内容或者一些其他类似的方法来完成选择

 

When something goes wrong, be nice, and be helpful—don't tell the user, "I couldn't find any

flights for your search". Instead tell them, "There were no available flights for your search,

but if you're prepared to leave a day earlier, here is a list of the available flights". Always

make sure your user can take another step forward without having to go "Back" (although

the option to go backwards should always exist).

 

当有错误发生时,友好些,并且对客户有用些---别告诉客户说“你查询的航班不存在”。取而代之的应该是“你查询

的航班已满额,但是如果你准备提早一天出发,这里有一个可乘坐的航班清单”。总是确保你的用户能够采取下一步

而不是“返回上一级”(当然了,返回选项应该始终存在)。

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
ava实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),可运行高分资源 Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现的毕业设计&&课程设计(包含运行文档+数据库+前后端代码),Java实现
C语言是一种广泛使用的编程语言,它具有高效、灵活、可移植性强等特点,被广泛应用于操作系统、嵌入式系统、数据库、编译器等领域的开发。C语言的基本语法包括变量、数据类型、运算符、控制结构(如if语句、循环语句等)、函数、指针等。下面详细介绍C语言的基本概念和语法。 1. 变量和数据类型 在C语言中,变量用于存储数据,数据类型用于定义变量的类型和范围。C语言支持多种数据类型,包括基本数据类型(如int、float、char等)和复合数据类型(如结构体、联合等)。 2. 运算符 C语言中常用的运算符包括算术运算符(如+、、、/等)、关系运算符(如==、!=、、=、<、<=等)、逻辑运算符(如&&、||、!等)。此外,还有位运算符(如&、|、^等)和指针运算符(如、等)。 3. 控制结构 C语言中常用的控制结构包括if语句、循环语句(如for、while等)和switch语句。通过这些控制结构,可以实现程序的分支、循环和多路选择等功能。 4. 函数 函数是C语言中用于封装代码的单元,可以实现代码的复用和模块化。C语言中定义函数使用关键字“void”或返回值类型(如int、float等),并通过“{”和“}”括起来的代码块来实现函数的功能。 5. 指针 指针是C语言中用于存储变量地址的变量。通过指针,可以实现对内存的间接访问和修改。C语言中定义指针使用星号()符号,指向数组、字符串和结构体等数据结构时,还需要注意数组名和字符串常量的特殊性质。 6. 数组和字符串 数组是C语言中用于存储同类型数据的结构,可以通过索引访问和修改数组中的元素。字符串是C语言中用于存储文本数据的特殊类型,通常以字符串常量的形式出现,用双引号("...")括起来,末尾自动添加'\0'字符。 7. 结构体和联合 结构体和联合是C语言中用于存储不同类型数据的复合数据类型。结构体由多个成员组成,每个成员可以是不同的数据类型;联合由多个变量组成,它们共用同一块内存空间。通过结构体和联合,可以实现数据的封装和抽象。 8. 文件操作 C语言中通过文件操作函数(如fopen、fclose、fread、fwrite等)实现对文件的读写操作。文件操作函数通常返回文件指针,用于表示打开的文件。通过文件指针,可以进行文件的定位、读写等操作。 总之,C语言是一种功能强大、灵活高效的编程语言,广泛应用于各种领域。掌握C语言的基本语法和数据结构,可以为编程学习和实践打下坚实的基础。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值