Benefits of Android Studio 1.4

Source: Internet
Author: User

Benefits of Android Studio 1.4

 

Android Studio was updated some time ago. The latest stable version is 1.4. No major changes were observed after the update. Today, I went to the official Update log and found that version 1.4 has added a lot of useful functions. Now I will share it with you.

VectorDrawable ThemeEditor Project Templates GPU rendering monitor network monitor Firebase

VectorDrawable

VectorDrawable inAPI 21The version is introduced. When using version 1.4 as, you can use the defined material design vectors or some SVG resources to change its size and transparency, and then generate an XML file for use. This is also supported when the API is lower than 21, but there are some restrictions, because the previous android version does not support vector graphs, so during the construction process, multiple PNG files based on multiple screen density are generated.

When using the Vector Assets tool, the gradle version must be1.4.0-beta3(Com. android. tools. build: gradle: 1.4.0-beta3) And.

Then, the official suggestion is: place the launcher icon according to the multi-screen DensityRes/mipmapThe following is still a good measure.

ThemeEditor

Everyone is familiar with theme. When we need to customize a set of theme. Many Attributes need to be customized and cannot be remembered. However, 1.4 brings benefits to our developers. You can use the Theme Editor to visually edit the theme.

As the first version to edit the topic, official support for material design colors (colors. xml) is added. In later versions, they will provide more themes and styles.

Go to Tools> Android> ThemeEditor.

With this tool, we can visually edit various attributes of a topic. For example, statusBarColor, textColorPrimary, windowBackground, and colorPrimary.

Project Templates

I think the functions of this Project template are quite convenient. The official website provides manyAndroid Design Support Library. Activities with blank activities, floating action buttons, and Navigation Drawer activities with sliding menus.

For example, in NavigactionDrawerActivity, we had to write a lot of code in the past, but also the layout of the main interface and the layout of the sliding interface. Click OK to use the template provided by.

Save time and effort. So fast ~~

Let's use Login Activity as an example. Select Login activity when creating the Activity, and then automatically generate the following demo interface. Besides the Account Password box and buttons, the MD-style TextInputLayout is automatically used, and basic verification functions are also available.

Isn't it great ~~

GPU rendering Monitor

Before you can view the GPU rendering status, you need to set it in your simulator or real machine to allow you to view it using the adb shell.

[Setting-> Developer Options-> Profile GPU rendering-> In adb shell dumpsys gfxinfo ].

Network Monitor

AS1.4 also provides a network monitor to view the sending and receiving rates of your applications.

Firebase

I didn't know what it was when I first saw this term. I checked it online to know that this is a back-end cloud service. Firebase has no restrictions on data storage capacity and can be scaled at any time. It can process up to millions of concurrent and TB-level data transmission. In addition, the API is simple and quick to use.

Google announced its acquisition in MarchThis companyTo allow developers to write WEB and mobile applications faster without worrying about how to write them on the server.

You can use [File-> Project Structure-> Cloud] to open it. For more resources, seeGoogle's GuidanceRight. (I have never used~ /(ㄒ o Records )/)

 

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.