Now Android developers basically use Android Studio for development (if you are still using eclipse, that's fine, after all, you can do whatever you like). Using the Android Studio plug-in well can greatly reduce our workload.
1. GsonFormat
Quickly convert a json string into a Java Bean, eliminating the need for us to hand-write the corresponding Java Bean based on the json string.
How to use: Alt+S shortcut key, you can also use Alt+Insert to select GsonFormat
2.Android ButterKnife Zelezny
Cooperate with ButterKnife to implement annotations, and you no longer need to write findViewById, which is great just thinking about it. Select the resource ID of the layout xml in Activity, Fragment, and Adapter to automatically generate butterknife annotations.
How to use: Ctrl+Shift+B to select the options shown in the picture
3.Android Code Generator
Quickly generate the corresponding Activity, Fragment, Adapter, and Menu based on the layout file.
4.Android Parcelable code generator
JavaBean serialization, quickly implement Parcelable interface.
5.Android Methods Count
Display the number of methods in dependent libraries
6.Lifecycle Sorter
You can sort the life cycle method positions according to the life cycle of Activity or fragment, shortcut key Ctrl + alt + K
7.CodeGlance
On the right, you can preview the code for quick positioning.
8.findBugs-IDEA
To find bug plug-ins, Android Studio also provides code review functions (Analyze-Inspect Code...)
9.ADB WIFI
Use wifi to wirelessly debug your app without root permissions.
You can also refer to the following articles:
New ways to debug Android wifi apps ADB WIFI
10.AndroidPixelDimenGenerator
Android Studio automatically generates dimen.xml file plug-in
11. JsonOnlineViewer
Request and debug interface in Android Studio
12.Android Styler
Plug-in that automatically generates style code based on xml
Usage:
a. copy lines with future style from your layout.xml file
b. paste it to styles.xml file with Ctrl+Shift+D (or context menu)
c. enter name of new style in the modal window
d. your style is prepared!
13.Android Drawable Importer
This is a very powerful image import plug-in. It imports the Drawable of Android icons and Material icons, imports Drawables in batches, and imports Drawables from multiple sources (that is, importing pictures corresponding to various dpi of a certain picture)
14.SelectorChapek for Android
Selector files are automatically generated by naming resource files.
15.GenerateSerialVersionUID
Implement Serializable serialization beans
Adds a new action ‘SerialVersionUID’ in the generate menu (alt + ins). The action adds an serialVersionUID field in the current class or updates it if it already exists, and assigns it the same value the standard ‘serialver’ JDK tool would return. The action is only visible when IDEA is not rebuilding its indexes, the class is serializable and either no serialVersionUID field exists or its value is different from the one the ‘serialver’ tool would return.
16.genymotion
Fast android emulator
17.LeakCanary
Helps you easily detect memory leaks during the development phase, making it easier and more convenient to use.
You can refer to the following articles:
LeakCanary Chinese Instructions for Use
18.Android Postfix Completion
You can quickly complete the code based on the suffix. This is an extension. The system already has these functions, such as sout, notnull, etc. This plug-in adds some new functions on the original basis. What I want to do more is to use the original author's code myself. Customization function would be even better
19.Android Holo Colors Generator
Generate corresponding Drawable and layout files by customizing Holo theme colors
20. dagger-intellij-plugin
dagger visual aid
21.GradleDependenciesHelperPlugin
maven gradle dependency supports automatic completion
22.RemoveButterKnife
Every time ButterKnife, a third-party library, is updated, the annotations for binding views will change, from bind, to inject, to bindview. This makes many people afraid to upgrade. Once upgraded, there will be a huge amount of code that needs to be modified manually. , it is very painful
when we have some great code that needs to be used in other projects, but we find that that project has restrictions on the use of third-party libraries, and we cannot use butterknife. At this time, we have to change back from annotations. For the above two situations, findviewbyid
is fine if there are relatively few views. If there are dozens of views, then we manually delete the annotations one by one and write the findviewbyid statement, which is simply a nightmare (don’t ask me why I know this is a nightmare)
So, why can’t this kind of regular, repetitive and simple work be realized with a plug-in? So the idea of RemoveButterKnife appeared.
23. AndroidProguardPlugin
One-click plug-in to generate project obfuscation code, which is worth installing~(However, the obfuscation of some third-party projects may not be fully added yet)
24. otto-intellij-plugin
otto event navigation tool.
25.eventbus-intellij-plugin
eventbus navigation plug-in (it seems invalid for the latest version of EventBus 3.0.0, please replace it with eventbus3-intellij-plugin. This plug-in address is in the 51st of this article)
26.idea-markdown
markdown plugin
27.Sexy Editor
Set the background image of the AS code editing area
First, click the setting button of the interface to enter the setting interface, select Plugins, select Browser... on the right, enter Sexy... The candidate plug-in will automatically pop up below, click Install on the right to install. After the installation is successful, you need to restart the AS. After the restart is completed, enter the setting interface and select Sexy Editor under other Settings. , just insert one or more pictures on the right side. Other settings above can set the orientation interval, time, transparency, etc. After the settings are completed, close the open file and reopen the project file to display the inserted pictures in the code editing area. , as the background image of the code editing area.
28.folding-plugin
Plug-in for grouping layout files
29.Android-DPI-Calculator
DPI calculation plug-in
30.gradle-retrolambda
Using lambda expression plugin in java 6 7
Modify the compiled jdk to java8:
31.Android Studio Prettify
You can write the strings in the code in the string.xml file
Select the string, right-click the mouse and select as shown in the picture
This plug-in can also automatically write findViewById
32.Material Theme UI
Add Material theme to your AS
33..ignore
We all know that if you want to filter out some files you don’t want to submit in Git, you can add the corresponding files to .gitignore. The Android Studio plug-in .gitignore selects templates according to different languages, so you don’t have to bother adding some files yourself. It also has an auto-completion function, so you no longer need to copy file names when filtering files. When we are working on a project, not all files need to be submitted, such as the build folder, local configuration files, and iml files generated by each Module. However, every time we add or commit, we will accidentally add them. And gitignore solves this pain point. If you don't want to submit a file, you can just add this file when creating the project to block some common things.
34.CheckStyle-IDEA
CheckStyle-IDEA is a plug-in for checking code style, such as naming conventions, Javadoc, class design, etc. to check code specifications and styles. You can follow Java code guidelines like Google Oracle, or of course you can set it according to your own rules. Configuration files, thereby effectively constraining yourself to better follow coding standards.
35.Markdown Navigator
github: Markdown Navigator
Markdown plugin
36.ECTranslation
Android Studio Plugin,Translate English to Chinese. Android Studio translation plug-in can translate English to Chinese.
37.PermissionsDispatcher plugin
github: PermissionsDispatcher plugin
automatically generates code for 6.0 permissions
38. WakaTime
github: WakaTime
records the time you work on the IDE
39.AndroidWiFiADB
Wireless debugging application
40.AndroidLocalizationer
Android Studio/IntelliJ IDEA plug-in that can be used to automatically translate string resources in the project into other languages
41.TranslationPlugin
Another translation plug-in that can translate between Chinese and English.
42.SingletonTest
Quickly generate singleton pattern presets
43. Drilling Plugin
Android Studio automatically generates layout code plug-in
code generation rules
a. Automatically traverse all files with IDs in the target layout, and those without IDs will not be recognized and processed. b
. The variable name generated by the control defaults to the ID name, which can be modified in the name input field on the right side of the pop-up confirmation box.
c. All Button or controls with clickable=true will automatically generate setOnClickListener related code in the code
. All EditText controls will generate non-empty judgment code in the code. If it is empty, it will prompt the EditText hint content. If the hint is empty, it will prompt The xxx string cannot be empty. Finally, the verification of all input boxes will be merged into a submit method. The
include tag in the layout will be automatically recognized and the controls in the corresponding layout will be read.
44. Jimu Mirror
It can preview Android layout in real time. It will monitor changes in layout files and refresh the UI immediately if there are code changes.
45.jRebel For Android
Not only can you preview the UI layout in real time, it even allows you to replace the class files in the apk in real time after changing the java code, so that the application can be refreshed in real time. The introduction on the official website is: Skip build, install and run, so it can It saves us a lot of time, and its effect is also very good.
46.sdk-manager-plugin
SDK management plug-in automatically detects and downloads updates. (The picture has nothing to do with the plug-in)
47. Codota
Search for the best Android code. (You can search this plug-in directly in Studio)
48.LayoutFormatter
drakeet develops an Android Studio plug-in that formats your XML files with one click. As for why you can use this plug-in instead of the formatting function that comes with Android Studio, you can read the author's Blog -> When we talk about XML layout file code elegance
49.android-strings-search-plugin
A plug-in that can find strings.xml resources by entering text
50. ideaVim
vim itself is an excellent text editor, and Android Studio is an artifact for writing APP applications. What would it be like if two great pieces of software were combined?
Please see the article for details: Android Studio +Vim
51.eventbus3-intellij-plugin
Guide the posts and events of EventBus (valid for the latest version of EventBus 3.0.0).
Main bug fixes:
modify the package name and method name to adapt to EventBus 3.X.
Replace a class that no longer exists in the new version of intellij plugin SDK.
Add some try- catch to prevent the plugin from crashing
52.Exynap
Exynap is an Android Studio plug-in that helps developers automatically generate boilerplate code.
53.gradle-cleaner-intellij-plugin
Force clear delaying & no longer needed Gradle tasks.
54.MVPHelper
A plug-in for Intellj IDEA and Android Studio that can generate interfaces and implementation classes for MVP, freeing your hands.
For details, please check the article MVPHelper of Android Studio plug-in, one-click generation of MVP code.
55.Matchmaker
This is a plug-in specially developed for WeChat applet and is currently available in IntelliJ IDEA. It can help you complete the process of repeating mechanical, boring and troublesome binding methods, and automatically inject new methods that need to be created into js files.
56.Emoji Support Plugin
Let Intellij support Emoji input reminder
57.Open-Uploader
Upload the apk file to the specified address and provide custom parameters
58.MultiTypeTemplates
Generate MultiType and itemviewprovider (for information on MultiType, please see Android's new way of writing complex list views, MultiType )
59.Android-ButterKnife-Plugin-Plus
The Android Studio plug-in facilitates the quick implementation of the ButterKnife annotation framework. It includes all the functions of android-butterknife-zelezny version 1.6, and adds the following functions on this basis:
1. You can freely choose whether to initialize ButterKnife in the current class, avoiding the embarrassment that the original version will automatically perform ButterKnife.bind(this) in onCreate as long as you use the plug-in initialization control.
In this way, ButterKnife can be initialized in the base class. It is not necessary to initialize it in every class, which makes it more convenient to build the development framework.
2. In the settings interface of Android Studio, a default value setting is provided for whether to force initialization in the current class, so that the plug-in can be used more in line with your own operating habits.
60. ApkMultiChannelPlugin
This is an Android Studio / IDEA plug-in to facilitate Android multi-channel packaging
Install:
- Open Android Studio: Open Setting/Preferences -> Plugins -> Browse repositories and then search for ApkMultiChannel, install and restart
or
- Download ApkMultiChannelPlugin.jar and then Setting/Preferences -> Plugins -> Install plugin from disk Select ApkMultiChannelPlugin.jar to install and restart
How to use:
-
Select apk
-
Configuration
Configure signature information, packaging methods and channels, etc.
Configuration instructions:
Key Store Path: The path to the signature file
Key Store Password: Password for signing files
Key Alias: key alias
Key Password: Key password
Zipalign Path: The path to the zipalign file (used to optimize apk; zipalign ensures that all uncompressed data starts with a specific byte alignment relative to the beginning of the file, which reduces the amount of RAM consumed by the application.)
Signer Version: Select the signature version: apksigner and jarsigner
Build Type: Packaging method
Channels: Channel list, one per line, you can add > or not at the beginning (the program will add it by itself when saving the information)
-
Start packing
After the configuration is completed, press OK to start channel packaging. The file will be output in the channels directory under the current directory of the selected apk.
61.CodeMaker
A code generation plug-in for IDEA that supports custom code templates to generate code through Velocity. Detailed introduction to the IDEA code generation plug-in CodeMaker
62.adb-idea
You can clear the cache and restart the APP with one click
This plug-in comes from [email protected]’s sharing. Thanks to [email protected] for sharing.
63.JVM Debugger Memory View
A very useful memory debugging plug-in in Android Studio and IDEA
For details, please refer to the article Talking about a very useful memory debugging plug-in in Android Studio and IDEA .
64.TinyPic
Function: Compress image resources, up to 500 images can be compressed at a time. The core function of compression is provided by the TinyPng website.
But this website can only upload 20 pictures at a time, so you need to upload and download, and uploading and downloading repeat the work. Fortunately, this website provides an API to compress images.
Apply for an API key under the developer page. For one key, there are 500 free compression quotas per month. If the compression exceeds 500 images, it cannot be used. Additional charges apply. But applying for this API is very simple. Just fill in your email address and username. Apply for two more email addresses. 1000 pictures are enough. Here we recommend Google’s ten-minute email address, which does not require registration and can only be used for ten minutes. It is very convenient to receive verification codes.
Usage:
1. Download the TinyPic plug-in in File->Settings->Plugins
2. Restart after installation and find TinyPic in the Tools directory.
3. Enter the api key applied at https://tinypng.com/developers
4. Select a picture. You can select a picture, a folder, or both. Anyway, it is traversing the pictures in the folder, filtering jpg and png, and the remaining number of keys.
5. Compression progress
6. More than 500 prompts (we will consider adding a file to generate compressed information in the future, because everyone uses git, it is actually not necessary)
65.ReciteWords
This is an androidStudio translation and unfamiliar word recording plug-in
The words you translate will be recorded in the ReciteWords.md file in your current user directory (eg: C:\Users\Bolex\ReciteWords.md). It can be opened through the Markdown editor for learning. The effect is as follows:
66.TemplateBuilder
TemplateBuilder is an AS plug-in that can help us quickly generate Android Studio Template. It improves the method of configuring templates one by one to using plug-ins. For simple template production, it only takes one click to generate.