In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "what are the new features of Android 8.0". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let Xiaobian take you to learn "what are the new features of Android 8.0"!
1. Notification
Google redesigned notifications to include five.
Notification Channels: Android 8.0 introduces notification channels, which allow you to create user-customizable channels for each notification type you want to display. The user interface refers to notification channels as notification categories.
Notification flags: Android 8.0 introduces support for displaying notification flags on app launcher icons. Notification flags can reflect whether an app has notifications associated with it that the user has not cleared or acted on. Notification signs are also known as notification points.
Sleep: Users can put notifications to sleep so they can re-display them later. The notification is as important when redisplayed as when it was first displayed. An app can remove or update dormant notifications, but updating dormant notifications does not cause them to reappear.
Notification timeout: You can now set a timeout when creating notifications using setTimeoutAfter(). You can use this function to specify a duration after which notifications should cancel. If desired, you can cancel notifications before the specified timeout duration.
Notification settings: When you use
2. Auto-fill frame
Account creation, logins and credit card transactions take time and are error-prone. Users are vulnerable to frustration when using applications that require such repetitive tasks.
Android 8.0 simplifies filling out forms like sign-in and credit card forms by introducing an autofill framework. After the user opts to accept autofill, both old and new apps can use the autofill framework.
3. Picture-in-picture mode
Android 8.0 allows operating components to be launched in Picture-in-Picture (PIP) mode. PIP is a special multi-window mode most commonly used for video playback. PIP mode is currently available for Android TV, but Android 8.0 makes it further available for other Android devices.
When an Activity is in PIP mode, it is paused, but content should continue to be displayed. Therefore, you should make sure that your app doesn't pause playback while processing in the onPause() handler. Instead, you pause the video in onStop() and resume it in onStart(). For more information, see Multi-Window Lifecycle.
To specify that your Activity can use PIP mode, set android:supportsPictureInPicture to true in the manifest. (Starting with Android 8.0, you don't need to set android:resizeableActivity to true if you plan to support PIP mode on Android TV or other Android devices; you only need to set android:resizeableActivity if your Activity supports other multi-window modes.)
4. Downloadable fonts
Android 8.0 and Android Support Library 26 allow you to request fonts from a provider app without binding fonts into an APK or having the APK download fonts. This feature reduces APK size, improves app installation success, and enables multiple apps to share the same font.
Fonts in XML
Android 8.0 introduces a new feature, fonts in XML, that allows you to use fonts as resources. This means that fonts no longer need to be bundled as assets. Fonts are compiled in R files and are automatically available to the system as a resource. You can then access these fonts with a new resource type font.
On devices running API version 14 and later, Support Library 26 provides full support for this feature.
6. Automatically resize TextView
Android 8.0 allows you to automatically set the size of text expansion or contraction based on the size of TextView. This means that optimizing text size on different screens or text size with dynamic content is much easier than ever.
7. Adaptive icons
Android 8.0 introduces adaptive launcher icons. Adaptive icons support visual effects and can be displayed in a variety of different shapes on different device models.
8. Color management
Android developers of image apps can now take advantage of new devices that support wide gamut color displays. To display a wide color gamut image, the app needs to enable a flag in its manifest (per action component) and load bitmaps with embedded wide color profiles (Adobe RGB, Pro Photo RGB, DCI-P3, etc.).
9. Fixed shortcuts and widgets
Android 8.0 introduces in-app fixings for shortcuts and widgets. In your app, you can create fixed shortcuts and widgets for supported launchers based on user permissions.
10. Maximum screen aspect ratio
Apps targeting Android 7.1 (API level 25) or earlier default to a maximum screen aspect ratio of 1.86. There is no default maximum aspect ratio for Android 8.0 or later apps. If your app needs to set a maximum aspect ratio, use the maxAspectRatio property in the manifest file that defines your action component.
11. Multi-monitor support
Starting with Android 8.0, this platform provides enhanced support for multiple displays. If the Activity supports multi-window mode and runs on a device with multiple displays, the user can move the Activity from one display to another. When an app launches an Activity, the app can specify on which display the Activity should run.
12. Pointer Capture
Certain applications, such as games, remote desktops, and virtualized clients, will greatly benefit from mouse pointer control. Pointer capture is a new feature in Android 8.0 that provides such control by passing all mouse events to the focus view in your app.
Starting with Android 8.0, Views in your app can request pointer capture and define a listener to handle captured pointer events. The mouse pointer is hidden in this mode. If mouse information is no longer needed, the view can release pointer capture. The system can also release pointer capture when the view loses focus (for example, when the user opens another application).
At this point, I believe that everyone has a deeper understanding of "what are the new features of Android 8.0", so let's actually operate it! Here is the website, more related content can enter the relevant channels for inquiry, pay attention to us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.