菜单
  
    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.
  1. 上一篇:Flash在网页设计中的应用英文文献和中文翻译
  2. 下一篇:从经典ASP到ASP.NET英文文献和中文翻译
  1. 汽车内燃机连杆载荷和应...

  2. 审计的优化管理英文文献和中文翻译

  3. FPGA的全景拼接相机的优化...

  4. 气味源定位的有限时间粒...

  5. PLC仿真的虚拟工厂英文文献和中文翻译

  6. ZigBee-RFID混合网络的节电英文文献和中文翻译

  7. PLC可编程控制器的介绍英文文献和中文翻译

  8. 浅析中国古代宗法制度

  9. g-C3N4光催化剂的制备和光催化性能研究

  10. NFC协议物理层的软件实现+文献综述

  11. 中国传统元素在游戏角色...

  12. 巴金《激流三部曲》高觉新的悲剧命运

  13. 上市公司股权结构对经营绩效的影响研究

  14. 高警觉工作人群的元情绪...

  15. 江苏省某高中学生体质现状的调查研究

  16. 现代简约美式风格在室内家装中的运用

  17. C++最短路径算法研究和程序设计

  

About

优尔论文网手机版...

主页:http://www.youerw.com

关闭返回