Android Studio 2.3 Update Little notes

Source: Internet
Author: User
Tags webp

Instant Run improvements and UI changes
Instant Run basically solves the problem of slow compilation of small-to-medium projects. As a feature of Google's focus, the Android Studio 2.3 version was optimized again on the original basis, further reducing the time to install replacement code. At the same time, the run and instant run buttons are displayed separately in the navigation bar of Android Studio for developers to choose to debug the policy.

Learn More
Build Cache
The compiled cache is a feature introduced in the Android Studio 2.2 release that caches the imported AAR and Libray in the project, speeding up compilation time during debugging. The new version is further optimized on this basis, and this feature is turned on by default and is turned off by default on version 2.2.
Learn More
Design-related

Constrain links and proportions in a layout
Constraint layout (constrained layouts) presumably everyone has heard of, but do not know whether to use the habit, currently I have not been formally used in the project. However, Google's official approach to this layout is particularly important, this is not the new version of Android Studio to improve. Introduce the improvement point, first recommend a "Guo Lin" for the constraints of the layout of the introduction, very detailed: the introduction of new features of Android, Constraintlayout fully resolved. After reading it, make sure you will be tempted.
Version 2.3 of Android Studio supports the use of links (Chains) and scales (Ratios) in constrained layouts. The concept of Chains is roughly that, in layout with constrained layouts, we can link multiple controls together to set constraints, such as:

The concept of Ratios is also better understood, look at the words:

Both Chains and Ratios support dynamic settings, and the corresponding Constraintset APIs are available.
Learn More
Layout Control Panel
If you often design layouts in the form of a drag-and-drop control, this update point is a bit more of a benefit to you. The new Widget Palette provides search, sorting, and filtering capabilities to help us find the controls we need. Also, provide a UI preview of the corresponding control before you choose to drag and drop.
Layout Editor Widget Palette
Learn More
Bookmark Common Properties
In layout design mode, we can save common attributes in the properties panel, which will then appear in the Favorites area, helping us to use them quickly.
Favorites Attributes on Layout Editor Properties Panel
Learn More
Support WebP
The WebP lossless compression format reduces file size by 25% compared to PNG format images. In the Android Studio 2.3 version, we are free to convert the image format, PNG to WebP, or WebP to PNG, and you can also adjust the file size by controlling the quality.
WebP Image Conversion Wizard
Learn More
Material Icon Gallery
The new Material icon Vector Gallery supports search filtering and sets the appropriate Label for each icon for searching. A very user-friendly improvement:
Vector Asset Wizard
Learn More
Development-related

The

Lint baseline
Android Lint is an essential tool for optimizing your project, and you may encounter such problems in use. Prior to this, each time the Lint command was executed, the tool would automatically traverse through all the target files and enumerate the non-conforming issues, and then we would deal with them one by one. But if you don't finish it, you'll have to start from the beginning to solve the problem again, and the old and new problems Lint together. At this point, if you only want to deal with new problems, there is no trace to find. The advent of the baseline (BaseLine) can solve your immediate problems. Set a BaseLine for each execution Lint, so that you only want to solve the idea of a new issues possible.
Lint Baseline Support
Learn and new Lint checks & annotations
App Links assistant
at the 2015 I/O Conference, Google is The Android M system supports the app link and establishes a correlation channel between the Web URL and the native app. For example, clicking the URL link in a text message and a URL in your browser will open the app that supports app Links, a great design. To do this, you need to add the appropriate settings to the project, modify the Manifest file, and so on. The new version development tool provides a visual tool to help us with these settings, such as:
App Links Assistant
Learn more
Template updates
starting with Android Studio 2.3, all of the new projects Templates uses Constraintlayout by default, and until then, the default is Relativelayout. This, again, illustrates the importance of constraining the layout. At the same time, the new version also adds a template for the bottom navigation mode, the default implementation of the Material design in the Bottom Navigation, design details Reference: guideline.
New Project Wizard Templates
Learn more Templates
IntelliJ Platform update
Android Studio 2.3 version uses IntelliJ 2016. 2 release, some improvements on the Update window and notification system on some Ides.
Learn more
Test related

Copy and paste function of Android simulator
In response to the needs of the vast number of developers, Google in the new version of the simulator (v25.3.1) to achieve the PC host and emulator of the mutual copy and paste function, mainly through the sharing clipboard implementation. Note that the Copy & Paste feature works only in the x86 Google API Emulator while API level (Android 4.4-kitkat) and later versions. Effect
Copy & Paste support in Android Emulator
Android Emulator command line tool
Starting with the Android SDK tools 25.3, the emulator file in the SDK Tools folder was transferred to a standalone emulator folder that was discarded and replaced by the Android AVD command used in the past. If you used a script file about this in the past, you need to make a slight change in the directory path. Of course, if you launch the emulator using Android Studio, it won't be affected.

Also Maple
Links: https://juejin.im/post/58bdee8661ff4b006cfcebef
Source: Denver Nuggets
Copyright belongs to the author. Commercial reprint please contact the author for authorization, non-commercial reprint please specify the source.

Android Studio 2.3 Update Little notes

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.