Reprint Please specify source: http://blog.csdn.net/crazy1235/article/details/49747141
Android Studio was updated a while ago and the latest stable version is now 1.4. I didn't see any big changes since the update. Go to the official changelog today and find out that the 1.4 version really adds a lot of features to use. Now share to everyone.
-
- Vectordrawable
- Themeeditor
- Project Templates
- GPU Render Monitor
- Network Monitor
- Firebase
Vectordrawable
Vectordrawable is introduced as in the API version. With version 1.4 as, with some well-defined material design vectors or some SVG resources, the tool can change its size and transparency, and then generate an XML file for use. The API is supported at less than 21 o'clock, but there are some limitations because the previous Android version does not support vectors, so the build process generates multiple PNG files based on multi-screen density.
When using the vector Assets tool, the Gradle version must be in 1.4.0-beta3(com.android.tools.build:gradle:1.4.0-beta3) and above.
Then the official also suggested: it is still a good idea to put the launcher icon in the Res/mipmap under the multi-screen density.
Themeeditor
Everyone is not unfamiliar with the subject. When we need to customize a set of themes. Many properties need to be customized, and these properties are often not remembered. But 1.4 brings benefits to our developers, and the theme editor allows you to visually edit the theme.
As the first version to be able to edit the theme, the official added support for material design colors (colors.xml). In later versions, they will provide more themes and styles.
Open with Tools, Android, Themeeditor.
With this tool, we can make visual edits to the various properties of the theme. For example: Statusbarcolor, Textcolorprimary, Windowbackground, colorprimary and so on.
Project Templates
The functionality of this project template I think is quite handy. The official offers a number of templates based on the Android Design support Library . Activity with floating action button with blank activity, navigation Drawer activity with side-slip menu.
For example Navigactiondraweractivity, in the past we need to write a lot of code, but also the main interface layout, but also the layout of the side-by-side interface. Using the as provided template, click OK.
Save time and effort. So fast~~
Let's take the login activity to do an example. When you create a new activity, select login activity and automatically generate the interface for the following demo. Not only the account password box and buttons, but also automatic use of MD-style textinputlayout, the basic verification function has also.
is not very good ~ ~
GPU Render Monitor
Before viewing GPU rendering scenarios, it is necessary for your emulator or real-computer settings to be allowed to be viewed using adb shell.
Setting, Developer Options, Profile GPU rendering, in adb shell Dumpsys gfxinfo.
Network Monitor
The AS1.4 also provides a network Monitor to see the sending and receiving rates of your app.
Firebase
When I first saw this noun, I didn't know what it was. It was a back-end cloud service when I looked it up on the Internet. Firebase has unlimited data storage capacity, scales at any time, and is capable of processing millions concurrent and terabyte data transfers. In addition, the API is simple and quick to get started.
Google announced last October the acquisition of the company , designed to allow developers to write faster web-side and mobile applications, without worrying about how the server-side write.
Open with "File--Project Structure-Cloud", for more resources please refer to Google's Guide . (I did not use ~/(ㄒoㄒ)/)
This blog to the end of this ~
Thank you for your support! If there is an error, please indicate ~
Thank you ~
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Benefits that Android Studio 1.4 brings