菜单
  
    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.32340
    New in L
    In L, notifications receive an important structural visual and functional update:
        Visual changes to notifications as part of material design
        Notifications are now available on the device lockscreen, yet sensitive content can still be hidden behind it
        A new presentation format called Heads-up for receiving high priority notifications while using the device
        Cloud-synced notifications - act on a notification on your Android tablet and it is also dismissed on your phone.
        And starting now (in Android 4.4W, API Level 20, the platform release for Android Wear), your notifications will bridge to Android Wear devices. You can extend the functionality of notifications on Wear in two different ways. First, you can add speech input and canned responses to Actions on Wear, allowing users to complete tasks from their wrists. Second, you can write Wear apps that hook into your notifications to go even further in terms of creating interactive experiences for users.
    Anatomy of a notification
    This section goes over basic parts of a notification and how they can appear on different types of devices.
    Base Layout
    At a minimum, all notifications consist of a base layout, including:
        The notification's icon, symbolizing the originating app, and also potentially the kind of notification if the app has several substantially different sorts of notifications it can post
        A notification title and additional text
        A timestamp
    Notifications created with Notification.Builder for versions of Android earlier than L will look and work the same in L, with only minor stylistic changes that the system handles for you.
    Base layout of a handheld notification and the same notification on Wear, with a user photo and a notification icon
    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.
    Good candidates for actions on notifications are actions that:
        Are essential, frequent and typical for the content type you're displaying
        Allow the user to accomplish tasks quickly
    Avoid actions that are:
        Ambiguous
        Duplicative of the default action of the notification (such as "Read" or "Open")
  1. 上一篇:软件测试和软件开发生命周期英文文献和翻译
  2. 下一篇:C#英文文献和中文翻译
  1. 汽车内燃机连杆载荷和应...

  2. 机械手系统英文文献和中文翻译

  3. 固体氧化物燃料电池英文文献和中文翻译

  4. 船舶运动仿真系统英文文献和中文翻译

  5. 新能源空调系统设计英文文献和中文翻译

  6. 正交试验回归法和响应曲...

  7. 机械设计制造及其自动化英文文献和中文翻译

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

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

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

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

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

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

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

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

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

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

  

About

优尔论文网手机版...

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

关闭返回