- 浏览: 236448 次
- 性别:
- 来自: 成都
文章分类
- 全部博客 (70)
- Spring (5)
- J2EE (5)
- Android (21)
- JavaSe (12)
- JmagicK (1)
- Eclipse (3)
- 重构 (1)
- Struts2 (2)
- 项目经验 (2)
- UML (1)
- 设计模式 (3)
- TDD (1)
- 极限编程 (1)
- 敏捷编程 (1)
- Json (1)
- Java web (1)
- ejb (1)
- mongodb (1)
- Mylyn (1)
- git (1)
- oracle (2)
- 操作系统 (1)
- 数据结构与算法 (2)
- C (1)
- 效率参考 (1)
- Java基础 (3)
- 开源框架 (1)
- 阿里云 (2)
- linux (1)
- html5开发框架 (3)
- ios开发 (2)
- webapp (0)
- 我的创业 (1)
- Java (1)
- IDE (1)
- Java虚拟机 (2)
- 区块链 (2)
最新评论
-
BlueSkyXin:
你真的很厉害,懂得不懂得,都跟我们讲清楚了。你这才叫学知识,透 ...
Struts2值栈的理解 -
wiseyl:
第一种方法: 过滤器不太好,建议在service层时 由于se ...
hibernate+spring mvc,解决hibernate对象懒加载,json序列化失败 -
u012256814:
您好,看了您的这个教程受益不小,我就是想问问您在sha1后面加 ...
Google Map API V2 密钥申请 详细图解 -
ahau10:
OGNL表达式,context, valueStack都讲清楚 ...
Struts2值栈的理解 -
yaolan:
Struts2值栈的理解
The notification system allows your app to keep the user informed about important events, such as new messages in a chat app or a calendar event.
To create an app that feels streamlined, pleasant, and respectful, it is important to design your notifications carefully. Notifications embody your app's voice, and contribute to your app's personality. Unwanted or unimportant notifications can annoy the user, so use them judiciously.
什么时候显示一个通知?
To create an application that people love, it's important to recognize that the user's attention and focus is a resource that must be protected. To use an analogy that might resonate with software developers, the user is not a method that can be invoked to return a value. The user's focus is a resource more akin to a thread, and creating a notification momentarily blocks the user thread as they process and then dismiss the interruptive notification.
Android's notification system has been designed to quickly inform users of events while they focus on a task, but it is nonetheless still important to be conscientious when deciding to create a notification.
While well behaved apps generally only speak when spoken to, there are some limited cases where an app actually should interrupt the user with an unprompted notification.
Notifications should be used primarily for time sensitive events, and especially if these synchronous events involve other people. For instance, an incoming chat is a real time and synchronous form of communication: there is another user actively waiting on you to respond. Calendar events are another good example of when to use a notification and grab the user's attention, because the event is imminent, and calendar events often involve other people.
什么时候不显示通知?
There are however many other cases where notifications should not be used:
-
Don't notify the user of information that is not directed specifically at them, or information that is not truly time sensitive. For instance the asynchronous and undirected updates flowing through a social network do not warrant a real time interruption.
-
Don't create a notification if the relevant new information is currently on screen. Instead, use the UI of the application itself to notify the user of new information directly in context. For instance, a chat application should not create system notifications while the user is actively chatting with another user.
-
Don't interrupt the user for low level technical operations, like saving or syncing information, or updating an application, if it is possible for the system to simply take care of itself without involving the user.
-
Don't interrupt the user to inform them of an error if it is possible for the application to quickly recover from the error on its own without the user taking any action.
-
Don't use notifications for services that the user cannot manually start or stop.
-
Don't create superfluous notifications just to get your brand in front of users. Such notifications will only frustrate and likely alienate your audience. The best way to provide the user with a small amount of updated information and to keep them engaged with your application is to develop a widget that they can choose to place on their home screen.
设计指南
让通知更专业
For notifications of items sent by another user (such as a message or status update), include that person's image.
Remember to include the app icon as a secondary icon in the notification, so that the user can still identify which app posted it.
导航到正确的地方
When the user touches a notification, be open your app to the place where the user can consume and act upon the data referenced in the notification. In most cases this will be the detail view of a single data item (e.g. a message), but it might also be a summary view if the notification is stacked (see Stacked notifications below) 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 key. For more information, see the chapter on System-to-app navigation in the Navigation design pattern.
对时间敏感事件添加时间戳
By default, standard Android notifications include a timestamp in the upper right corner. Consider whether the timestamp is valuable in the context of your notification. If the timestamp is not valuable, consider if the event is important enough to warrant grabbing the user's attention with a notification. If the notification is important enough, decide if you would like to opt out of displaying the timestamp.
Include a timestamp if the user likely needs to know how long ago the notification occurred. Good candidates for timestamps include communication notifications (email, messaging, chat, voicemail) where the user may need the timestamp information to understand the context of a message or to tailor a response.
堆叠您的通知
If your app creates a notification while another of the same type is still pending, avoid creating an altogether new notification object. Instead, stack the notification.
A stacked notification builds a summary description and allows the user to understand how many notifications of a particular kind are pending.
Don't:
Do:
If you keep the summary and detail information on different screens, a stacked notification may need to open to a different place in the app than a single notification.
For example, a single email notification should always open to the content of the email, whereas a stacked email notification opens to the Inbox view.
能够自动清理
Just like calendar events, some notifications alert the user to an event that happens at a particular point in time. After that moment has passed, the notification is likely not important to the user anymore, and you should consider removing it automatically. The same is true for active chat conversations or voicemail messages the user has listened to, users should not have to manually dismiss notifications independently from taking action on them.
对通知提供预览
You can provide a short preview of your notification's content by providing optional ticker text. The ticker text is shown for a short amount of time when the notification enters the system and then hides automatically.
用户可以设置是否使用通知
Users should always be in control of notifications. Allow the user to silence the notifications from your app by adding a notification settings item to your application settings.
使用不同的图标
By glancing at the notification area, the user should be able to discern what notification types are currently pending.
Do:
- Look at the notification icons the Android apps already provide and create notification icons for your app that are sufficiently distinct in appearance.
Don't:
- Use color to distinguish your app from others. Notification icons should generally be monochrome.
可交互的通知
Notifications are indicated by icons in the notification area and can be accessed by opening the notification drawer.
Inside the drawer, notifications are chronologically sorted with the latest one on top. Touching a notification opens the associated app to detailed content matching the notification. Swiping left or right on a notification removes it from the drawer.
On tablets, the notification area is integrated with the system bar at the bottom of the screen. The notification drawer is opened by touching anywhere inside the notification area.
Ongoing notifications
Ongoing notifications keep users informed about an ongoing process in the background. For example, music players announce the currently playing track in the notification system and continue to do so until the user stops the playback. They can also be used to show the user feedback for longer tasks like downloading a file, or encoding a video. Ongoing notifications cannot be manually removed from the notification drawer.
Dialogs 和toasts是获取反馈,不是通知
Your app should not create a dialog or toast if it is not currently on screen. Dialogs and Toasts should only be displayed as the immediate response to the user taking an action inside of your app. For instance, dialogs can be used to confirm that the user understands the severity of an action, and toasts can echo back that an action has been successfully taken.
发表评论
-
Java实现文件加密传输和快速解密读取
2018-06-29 15:29 4299在运营某些项目时,我们可能需要使用到第三方的服务器来存储数据 ... -
Java实现文件加密传输和快速解密读取
2018-06-29 15:37 1在运营某些项目时,我们可能需要使用到第三方的服务器来存储数 ... -
Android4.4来了
2013-11-01 13:59 0Beautiful & Immersive A ... -
Android应用开机自动启动
2013-09-28 19:58 1759背景知识:当Android启动时,会发出一个系统广播,内容为 ... -
Java基础 之软引用、弱引用、虚引用
2013-09-28 19:55 1122在JDK1.2以前的版本中,当一个对象不被任何变 ... -
adb server无法启动方法,结束占用端口的进程
2013-08-05 13:38 8340adb server is out of date. ki ... -
ListViewPager,ListView分页最轻量解决方案
2013-08-05 12:41 0import java.util.concurrent.at ... -
【Android】升级ADT 22 引发的错误
2013-07-05 17:24 1043言 今天心血来潮,又把ADT升级了一下,升级到了ADT 2 ... -
Google I/O大会发布Android Studio,安装与不能运行解决
2013-05-16 15:25 20801.下载地址: https://developer.an ... -
Google I/O大会发布Android Studio,安装与不能运行解决等错误解决。
2013-05-16 15:23 1277下载地址: https://developer.andro ... -
使用Git之后出现android library引用失败
2013-04-06 00:04 5515今天在做android项目的使用,因为使用了git做代码托管 ... -
提高Android在eclipse下的编译速度
2013-04-02 15:46 3169大家都知道用eclipse安装adt来进行Android程序 ... -
android no target available 解决
2013-04-02 15:33 10420在安装最新版本的ADT之后,版本21.1.启动eclipse ... -
android学习和广告平台赚钱
2013-01-30 09:29 1702前言: 2011年11月份我开始学习andr ... -
android4.0 使用百度地图不能自动刷新问题
2013-01-21 10:38 2074百度地图,4.0以下的可以正常使用。 但是4.0的就会出 ... -
Google Map API V2 密钥申请 详细图解
2013-01-13 11:03 19513前一阵公司给配了个Mac 谁想项目运行后地图没了,怎么办 ... -
Json转换为Java对象
2012-11-04 19:56 1704package com.chinatech.common ... -
Android Query使用教程
2012-08-05 01:39 7625在android程序设计中,很多是要要实现异步任务,缓存,获取 ... -
设置Activity全屏
2012-08-05 01:27 1344*全屏 在Android下如何实现一个Activit ... -
android 拍照上传照片
2012-08-05 01:23 1358废话不多说,直接进入主题,想要在android中实现拍 ...
相关推荐
建议创建一个虚拟环境以独立运行此应用程序。 阅读-https: 激活虚拟环境后,只需在Linux的require.txt中安装所有软件包-pip install -r requirements.txt 使用python manage.py runserver命令运行服务器,然后在...
在本文中,我们将深入探讨如何在 Laravel 框架中使用 SmsPilot 服务来实现高效的通知系统。标题“Laravel开发-smspilot-...如果你正在探索这个项目,建议查看源代码,了解具体实现细节,并根据自己的项目需求进行定制。
要求PHP 7.1以上GMP 字符串卷曲openssl 建议使用 PHP 7.2+ 以获得更好的性能。安装安装此扩展的首选方法是通过 。 要么跑 php composer.phar require --prefer-dist webzop/yii2-notifications "*"或添加 "webzop/...
在使用"Orc.Notifications"时,开发者可以自定义通知的外观和行为。这包括设置通知的标题、内容、图标以及它出现和消失的动画效果。库可能还支持不同级别的通知优先级,以及用户交互功能,如点击通知后执行特定操作...
2. **权限管理**:在使用Web Notifications API之前,需要获取用户的许可。通常,浏览器会在用户首次访问时询问是否允许发送通知。`Notification.requestPermission()`方法可以用来请求这个权限。 3. **创建通知**...
实体通知-实体客户端通知@ inrupt / solid-client-notifications是一个用于订阅通知的Javascript库。... 如果需要Internet Explorer的支持,建议将它们通过类的工具传递,并为诸如Map , Set , Promise ,
如果您使用Jenkins CI进行自动化构建和作业,则需要使用我们的Chrome扩展程序。 每当由于某种原因导致作业失败或失败的作业成功时,您都会在桌面上收到警报(通过Chrome)。 此外,您无需浏览到Jenkins仪表板即可...
3. **多语言支持**:尽管提供的描述是英文,但GitHub Notifications-crx作为一款全球化的工具,很可能支持多种语言,包括中文,以满足不同地区用户的使用需求。 4. **简单易用**:安装并配置好插件后,用户几乎无需...
- **建议措施:**提供推荐的应对策略或替代方案。 - **联系方式:**提供负责此变更的相关人员的联系信息。 **5. 版权声明** - 该文件受版权保护,未经出版社许可,不得进行复制、翻译、微缩摄影、电子存储及处理等...
Ruby on Rails和Twilio的ETA通知 使用SMS消息使客户随时了解您的移动员工的状态。 通过工作流中的操作或地理位置更新触发的通知来创建令人愉悦的按需体验。... 如果在Mac上,我建议使用 。 bundle exec
如果您将Jenkins CI用于您的自动构建和作业,那么您将需要使用我们的Chrome扩展。 每当某个作业因任何原因失败或失败的作业成功时,您将在桌面上收到警报(通过Chrome)。另外,您可以轻松查看工作状态,而无需浏览...
这个插件的核心功能在于帮助用户实时获取与数据逻辑和治理相关的更新、警告或建议,提升工作效率并确保数据的准确性和合规性。 在实际应用中,Digital Ops - Notifications插件会嵌入到用户的浏览器环境中,当平台...
由于您是 emacs 用户,我建议您将本指南作为 org-mode 文件阅读。 在获取本文档的组织模式版本。假设/依赖亩/亩4e 您可以使用以下命令从自制软件中使用 mu4e 获取 mu: brew install mu --with-emacs 确保将 mu4e ...
话语电报通知Discourse插件,允许用户通过电报消息接收其通知进行设定按照此处的说明:通过与交谈创建电报(说明将“令牌”粘贴到站点设置“电报访问令牌”中勾选“启用电报通知” 我强烈建议您使用/setjoingroups...
《Orderino - notifications about new orders》是一款专为餐饮业设计的Chrome浏览器插件,它能够帮助用户实时获取来自Orderino平台的新订单通知。这款插件支持两种语言:英语和俄语,确保了不同地区用户的使用体验...
4. **备份**:在更改任何设置之前,建议先备份数据库和文件,以防万一出现意外情况。 总的来说,"wp-disable-update-notifications"插件为那些希望减少更新提示干扰的WordPress用户提供了便利。它结合了PHP编程技术...
安装TamperMonkey( ),( ) 不建议在FireFox上使用GreaseMonkey,但可以对其进行测试。 安装TamperMonkey之后,请安装Avabur 刷新头像 NoA的设置位于“ Account Management. 特征 的定期通知 可用Harvestron 可...
注意,aQQ可能不支持cmwap连接,首次登录时建议使用WIFI或3G网络。 - 方法二:通过Web QQ网页版,直接在浏览器访问web.qq.com,输入账号和密码登录,享受与PC版相似的聊天体验。 4. **设置个性化铃声** - 方法一...
同时,对于错误处理,建议采用幂等性设计,避免因网络问题导致的重复推送。 最后,为了优化用户体验,推送通知的内容应当精炼且具有价值,避免打扰用户。同时,考虑到推送策略,比如在合适的时间发送,以及用户对推...
就是说,随时建议功能,如果我发现一些有趣的东西,我可能最终会实现它。 FVTT版本兼容性 我的重点是FVTT的稳定分支。 我既不承诺也不优先考虑FVTT beta或alpha分支的更新! 随时报告一个错误,