Material design - Components– Widgets

Widgets - 窗口小部件

Widgets display glanceable views of an app's most important data and functionality.

【翻译】
小部件显示应用程序最重要的数据和功能的可见视图。

Usage - 用法

Home screen widgets display your app’s new and interesting content in a consolidated form. They link to richer detail within the app.

Users can move and, if supported, resize widgets across their home screen panels.

【翻译】
主屏幕小部件以合并的形式显示您应用的新内容和有趣的内容。他们链接到更丰富的细节在应用程序内。
用户可以移动,如果支持,可以在其主屏幕面板上调整小部件的大小。

Types of widgets - 窗口小部件的类型

Information widgets - 信息小部件

Information widgets display a few elements of importance to a user and track how that information changes over time, such as weather or sports scores. Tapping the widget launches the associated app into a detail view.

【翻译】
信息小部件向用户显示一些重要的元素,并跟踪该信息随时间的变化,例如天气或运动成绩。点击小部件将相关联的应用程序启动到详细视图。

Material design - Components– Widgets_第1张图片
image

An information widget

【翻译】
信息小部件

Collection widgets - 集合小部件

Collection widgets display multiple elements of the same type, such as a collection of articles from a news app. They focus on two interactions:

Browsing a collection
Opening an element’s detail view
Collection widgets can scroll vertically.

【翻译】
集合小部件显示同一类型的多个元素,例如来自新闻应用程序的文章集合。 他们专注于两个互动:
浏览集合
打开元素的详细视图
集合小部件可以垂直滚动。

Material design - Components– Widgets_第2张图片
image

Collection widgets

【翻译】
集合小部件

Material design - Components– Widgets_第3张图片

Control widgets - 控件小部件

Control widgets display frequently used functions. These functions may be triggered from the home screen without opening the app. For example, music app widgets allow the user to play, pause, or skip music tracks from outside the music app.

Control widgets may or may not progress to a detail view.

【翻译】
控件窗口小部件显示常用功能。 这些功能可以从主屏幕触发而不打开应用程序。 例如,音乐应用程序小部件允许用户从音乐应用程序外部播放,暂停或跳过音乐曲目。
控件窗口小部件可能或可能不会进入详细视图。

[图片上传失败...(image-9a026a-1552292469493)]
A control widget

【翻译】
控件窗口小部件

Hybrid widgets - 混合小部件

Many widgets are hybrids that combine elements of the different types above. Center your widget around one of these types and add elements of others as needed.

For example, a music player widget combines a control widget with elements of an information widget. The result keeps the user informed about which track is currently playing.

【翻译】
许多小部件是混合以上不同类型的元素。 将您的窗口小部件放置在其中一种类型之间,并根据需要添加其他元素。
例如,音乐播放器窗口小部件将控制窗口小部件与信息小窗口的元件组合。 结果保持用户知道当前正在播放哪个音轨。

Material design - Components– Widgets_第4张图片
image

A hybrid widget

【翻译】
混合小部件

Behavior - 行为

**Navigation - 导航 **

Your widgets should provide navigation links to frequently used areas of your app, including:

Functions that allow the user to create new content, such as a new document or message
Access to the top level of your app

【翻译】
您的小部件应提供指向应用常用区域的导航链接,其中包括:
允许用户创建新内容的功能,例如新文档或消息
访问应用的顶级

Widget resizing - 小部件调整大小

Resizing allows users to adjust the height or width of a widget. This allows users to influence the layout of widgets on home panels.

Your app may be completely resizable or constrained to horizontal or vertical size changes.

【翻译】
调整大小允许用户调整窗口小部件的高度或宽度。这允许用户影响家用面板上的小部件的布局。
您的应用程式可能完全可调整大小,或限制为横向或纵向大小变更。

Material design - Components– Widgets_第5张图片
image

A long press and subsequent release sets resizable widgets into resize mode. Users can use the drag handles or the widget corners to set the desired size.

【翻译】
长按和后续发布将可调整大小的小部件设置为调整大小模式。用户可以使用拖动手柄或小部件角来设置所需的大小。

Scrollable widgets - 可滚动小部件

List or grid-based collection widgets usually expand or contract the vertical scrolling area. Regardless of the widget's size, the user can still scroll all elements into view.

Determine how much of your app's information should surface. For smaller sizes concentrate on the essential and then add more contextual information as the widget grows.

【翻译】
列表或基于网格的集合小部件通常会展开或收缩垂直滚动区域。无论小部件的大小,用户仍然可以滚动所有元素到视图。
确定应用程序的信息应显示多少。对于较小的大小集中在必要的,然后添加更多的上下文信息作为小部件增长。

Non-scrollable widgets - 不可滚动小部件

Information widgets are not scrollable. All content and layout must dynamically fit as sized by the user.

【翻译】
信息小部件不可滚动。所有内容和布局必须动态适合用户的大小。

Responsive resizing - 响应调整大小

Widgets should accommodate different spacing requirements across devices, including cell number, size, and spacing variations.

【翻译】
窗口小部件应适应不同设备的不同间距要求,包括单元格编号,大小和间距变化。

Configuring widgets - 配置小部件

Android widgets display their configuration choices once placed on a home panel.

【翻译】
Android小部件在放置在主面板上时会显示其配置选项。

Configuration best practices:

Keep configuration light and don't present more than 2-3 configuration elements
Present configuration choices using dialogs, rather than full-screen, to retain the user's context
Once setup, widgets do not typically show a "Setup" or "Configuration" button.

【翻译】
配置最佳实践:
保持配置光,并且不超过2-3个配置元素
当前的配置选择使用对话框,而不是全屏,保留用户的上下文
一旦设置,小部件通常不会显示“设置”或“配置”按钮。

你可能感兴趣的:(Material design - Components– Widgets)