Android5.0 new features
Material Design design style
Google hopes that MaterialDesign can bring a paper-based experience to users. Drawing on basic graphic design conventions such as traditional typography, typography, grid systems, space, proportion, color matching, and use of images, we use the surfaces and edges of entities to create visual cues that give users a sense of authenticity.
Support 64-bit virtual machines
Abandoned the Dalivk virtual machine used before and switched to the Art virtual machine to achieve true cross-platform compilation and appear on different machine platforms
Multitasking window OverView
Each App is an independent card
Device identification unlock
Unlock a specific device when it's near the Android device, bypassing the lock screen
RecylerView appears to replace ListView
RecylerView has a high degree of decoupling, exceptional flexibility and higher efficiency. It can support setting different layout managers LayoutManager, item spacer line ItemDecoration, and ItemAnimator to achieve different effects.
CardView card layout appears
You can set the corner radius and shadow radius of the card
Three kinds of notifications
General notice
Collapse notification
A custom layout is added to the ordinary notification by setting the bigContentView attribute of the builder. Since the layout is in the App process, and the notification is obviously not the App process, it is necessary to use RemoteView to encapsulate the custom view.
Floating notification
When the notification appears, it will float on the screen for a period of time and then automatically disappear. The layout of the suspension is different from the layout after entering the notification. The suspended layout sets the action after clicking by setting setFullScreenIntent.
ToolBar
Used to replace ActionBar. Compared with ActonBar, ToolBar is more free and has more setting space. It can be placed anywhere and used in the same way as ActionBar.
You need to set the ActionBar in the style to remove it, and call setSupportActionBar to place the ToolBar reference in the code.
Palette color picker
Android 5.0 can extract colors through the Palette color picker to dynamically adapt to the hue of the current interface, making the tone of the App's colors harmonious and unified.
It is very simple to extract colors. Create a Bitmap, give the Bitmap to the parameters of Palette.form, call generate and pass in a callback, and get the color by getting getRgb from the palette in the callback.
Original link: Android5.0 new features - Nuggets (juejin.cn)