Android Courses---Some tips for Android studio

Source: Internet
Author: User

APK Slimming

In Android Studio we can turn on the confusion, and automatically delete no resources files, to achieve the purpose of slimming the app, which is useful for some long-time maintenance of the old project,
There are many invalid resource, and the resulting apk will be much smaller after deletion.

We only need to add in the Build.gradle of the project

Android {    buildtypes {        release {            true            true        }}    } 

Minifyenabled is open confusion
Shrinkresources Deleting an invalid resource
Shrinkresources relies on minifyenabled and must be used in conjunction with minifyenabled.

Multi-language editor

We open a String.xml file in Android Studio, the IDE will prompt you to use the multilingual editor, this is a good thing, we can fill in all the language strings here, but also in red to indicate which has not translated.

Selector Auto Generator

This plugin needs to be installed and we can Selectorchapek install in Preferences→plugins→browse repositories search

1) Right click on the resource file directory, e.g. select ' drawable-xhdpi '

2) Select ' Generate Android selectors '

3) All selectors will be automatically generated to the ' drawable ' folder

Plugin address: Selectorchapek for Android

Logcat Color Customization

Android Studio Logcat for different levels, the default is basically Gray,
We can customize the color of the Logcat in the settings

Android Courses---Some tips for Android studio

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.