android 英文文献,Android通知的设计英文文献和中文翻译

本文介绍了Android通知系统的设计细节,包括通知的基本部分、提供详细布局选项、内置动作以简化用户操作、设置通知优先级确保重要性显示,以及如何创建总结通知以减少认知负担。阅读这篇翻译文章,了解如何优化用户的通知体验和跨设备同步。
摘要由CSDN通过智能技术生成

Android通知的设计英文文献和中文翻译

时间:2019-10-27 20:06来源:毕业论文

Design for Notifications The notification system allows users to keep informed about relevant and timely events in your app, such as new chat messages from a friend or a calendar event. Think of notifications as a news channel that alerts th

Design for Notifications The notification system allows users to keep informed about relevant and timely events in your app, such as new chat messages from a friend or a calendar event. Think of notifications as a news channel that alerts the user to important events as they happen or a log that chronicles events while the user is not paying attention - and one that is synced as appropriate across all their Android devices.41591

Anatomy of a notification

This section goes over basic parts of a notification and how they can appear on different types of devices.

Expanded layouts

You have the option to provide more details on notifications. You can use this to show the first few lines of a message or show a larger image preview. This provides the user with additional context, and - in some cases - may allow the user to read a message in its entirety. The user can pinch-zoom or perform a single-finger glide in order to toggle between compact and expanded layouts. For single event notifications, Android provides three expanded layout templates (text, inbox, and image) for you to re-use in your application.

Actions

Android has supported optional actions that are displayed at the bottom of the notification, as far back as Jelly Bean. With actions, users can handle the most common tasks for a particular notification from within the notification shade without having to open the originating application. This speeds up interaction and, in conjunction with "swipe-to-dismiss", helps users to streamline their notification triaging experience.

Be judicious with how many actions you include with a notification. The more actions you include, the more cognitive complexity you create. Limit yourself to the fewest number of actions possible by only including the most imminently important and meaningful ones.

You can specify a maximum of three actions, each consisting of an action icon and an action name. Adding actions to a simple base layout will make the notification expandable, even if the notification doesn't have an expanded layout. Since actions are only shown for expanded notifications and are otherwise hidden, you must make sure that any action a user can invoke from a notification is available from within the associated application as well.

Your notification's main icon will still be shown, so the user can associate it with the icon visible in the status bar.

Navigate to the right place

When the user touches the body of a notification (outside of the action buttons), open your app to the place where the user can view and act upon the data referenced in the notification. In most cases this will be the detail view of a single data item such as a message, but it might also be a summary view if the notification is stacked and references multiple items. If in any of those cases the user is taken to a hierarchy level below your app's top-level, insert navigation into your app's back stack to allow them to navigate to your app's top level using the system back button.

Correctly set and manage notification priority

Starting with Jelly Bean, Android supported a priority flag for notifications. It allows you to

influence where your notification will appear in comparison to other notifications and help to make sure that users always see their most important notifications first.

Summarize your notifications

If your app creates a notification while another of the same type is still pending, avoid creating an altogether new notification object. Instead, turn it into a summary notification for the app.

A summary notification builds a summary description and allows the user to understand how many notifications of a particular kind are pending.

You can provide more detail about the inpidual notifications that make up a summary by using the expanded digest layout. This allows users to gain a better sense of which notifications are pending and if they are interesting enough to be read in detail within the associated app. Android通知的设计英文文献和中文翻译:http://www.youerw.com/fanyi/lunwen_41699.html

------分隔线----------------------------

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值