Current location - Health Preservation Learning Network - Slimming men and women - What's amazing about Android Studio?
What's amazing about Android Studio?
APK fitness

In Android Studio, we can start confusion, automatically delete files without resources, and achieve the purpose of slimming the APP, which is more useful for some old projects with long maintenance time.

There are many invalid resources in it, and the APK generated after deletion will be much smaller.

We just need to add the build.gradle of the project.

android {

Build type {

Publish {

minifyEnabled true

shrinkResources true

}

}

}

MinifyEnabled is confusing.

ShrinkResources deletes invalid resources.

ShrinkResources depends on minifyenabled and must be used with minifyenabled.

Multilingual editor

We open a String.xml file in Android Studio, and the IDE will prompt you to use a multilingual editor. This is really a good thing. We can fill in the strings of all languages together here, or we can mark the untranslated ones in red.

Selector automatic generator

This plug-in needs to be installed. We can search for SelectorChapek installation in Preferences → Plugins → Browse Repository.

1) right-click the resource file directory, for example, select' drawable-xhdpi'.

2) Select "Generate Android Selector".

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

Plug-in address: SelectorChapek for Android

Logcat color customization

Logcat in Android Studio is basically gray by default for different levels.

We can customize the color of Logcat in the settings.