菜单
  

    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.
    Notifications on Android Wear
    Additionally, notifications and their actions are bridged over to Wear devices by default. Developers have control to control which notifications from bridging from the phone to the watch and vice versa. And developers can control which actions bridge as well. If your app includes actions that can't be accomplished with a single tap, either hide these actions on your Wear notification or consider hooking them up to a Wear app to allow the user to finish the action on their watch.
    Bridging notifications
    Notifications that should be bridged
        New instant messages
    Don't bridge
        If a podcasting app has new episodes available for download, keep this notification on the phone.
    Bridging actions
    Actions to bridge
        Single tap actions such as +1, Like, Heart
    Actions not to bridge
        Actions that map to features that aren't possible on the watch
    Unique actions to define for Wear
        Quick lists of canned responses such as "Be right back"
        Open on phone
        A "Comment" or "Reply" action that brings up the speech input screen
        Actions that can launch Wear-specific apps
    Heads-up Notification
    When notifications with priority set to High arrives, it is presented to users for a short period of time on the device with an expanded layout with its actions exposed.
    After this period of time, it retreats back to the Notification shade. If a notification is flagged as High or Max or a full-screen takeover, it gets a HUN in L.
    Good examples of Heads-up notifications
        Incoming phone call when using device
        Alarm when using device
        New SMS message
        Low battery
    Guidelines
    Make it personal
    For notifications of items sent by another person (such as a message or status update), include that person's image using setLargeIcon. Also attach information about the person to the notification's metadata.
    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. You can choose from the following priority levels when posting a notification:
    Priority    Use
    MAX    Use for critical and urgent notifications that alert the user to a condition that is time-critical or needs to be resolved before they can continue with a particular task.
  1. 上一篇:软件测试和软件开发生命周期英文文献和翻译
  2. 下一篇:C#英文文献和中文翻译
  1. 汽车乘员舱的声振耦合英文文献和中文翻译

  2. 立体光照成型的注塑模具...

  3. 数控机床英文文献和中文翻译

  4. 工业机械手英文文献和中文翻译

  5. 低频振动的铁路车轴的状...

  6. 接头的形状对沥青塞接头...

  7. 数控加工技术英文文献和中文翻译

  8. 当代大学生慈善意识研究+文献综述

  9. 乳业同业并购式全产业链...

  10. 电站锅炉暖风器设计任务书

  11. 十二层带中心支撑钢结构...

  12. 中考体育项目与体育教学合理结合的研究

  13. 酸性水汽提装置总汽提塔设计+CAD图纸

  14. 杂拟谷盗体内共生菌沃尔...

  15. java+mysql车辆管理系统的设计+源代码

  16. 河岸冲刷和泥沙淤积的监测国内外研究现状

  17. 大众媒体对公共政策制定的影响

  

About

751论文网手机版...

主页:http://www.751com.cn

关闭返回