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