毕业论文

打赏
当前位置: 毕业论文 > 外文文献翻译 >

Android系统英文文献和中文翻译

时间:2019-01-06 13:43来源:毕业论文
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.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") Android系统英文文献和中文翻译:http://www.751com.cn/fanyi/lunwen_28864.html
------分隔线----------------------------
推荐内容