1, Layoutcreator
Function
Allows you to automatically generate layout-related initialization code such as Findviewbyid in Activity/fragment
or automatically generate Viewholder code in adapter
If you have any new needs or ideas, you can also put it in the issue.
Installation
Way one. Download the jar package from the project and import it via local disk
Mode two. Search Layoutcreator Download installation in the plugin center of Android Studio
Usage
1, the new activity after the self-written oncreate and Setcontentview set the corresponding layout
2. Select layout, shortcut key Alt+insert, then select Layoutcreator or select the layout in the code in the menu bar Layoutcreator
Or select Generate-layoutcreator in the right-click menu
3, the plugin will automatically traverse the layout list all the controls with ID, you can select the control you want to automatically generate in the popup dialog box
4, Pop-up dialog box can also check whether to generate Viewholder
5, choose good after confirm confirm can
usage
Code generation rules
1, automatically traverse the target layout of all the files with ID, no ID will not recognize the processing
2. The variable name generated by the control defaults to the ID name and can be modified in the Name entry field on the right side of the popup confirmation box.
3. All buttons or controls with Clickable=true will automatically generate Setonclicklistener related code in the code
4, all EditText control, will generate a non-null judgment code in the code, if the empty will prompt edittext hint content, if the hint is empty prompt xxx string can not be empty word, finally will all input box validation merged into a Submit method
5. The include tag in the layout is automatically recognized and the controls in the corresponding layout are read
2, Android-butterknife-zelezny
Android-butterknife-zelezny is a custom-made plug-in according to Butterknife, to facilitate the rapid initialization, for me is a prerequisite for development, I also have some optimization of this plug-in, personal feel more cool, Blog Address: Butterknifeplugin
3, Selectorchapek
Designers to provide us with all kinds of resources, each button to write a selector is not very troublesome? So this plug-in to solve this problem, you only need to do is to tell the designers to follow the code named just fine, the other one button to fix. After naming in different states (normal, pressed), right-click File tree generate Android selectors see Inmite/android-selector-chapek GitHub.
4, Gsonformat
Java entity classes can be generated quickly based on JSON data
Simple entity class
Complex entity Classes
5. Android Postfix Completion
Can be based on the suffix to quickly complete the code, this belongs to the expansion bar, the system already has these functions, such as sout, notnull, etc., this plugin in the original based on the addition of some new features, I would like to do is through the original author's code to customize the function, it is more cool
6, Androidaccessors
Fast generation of Get and set method plug-in, in fact, the system is very fast, of course, this person feels faster
7, Lifecycle Sorter
The life cycle method location can be sorted according to activity or fragment life cycle, shortcut CTRL + ALT + K
8, Jsononlineviewer
Can be implemented directly in the Android Studio debugging interface data, you can choose the type of request, custom request header and request body, JSON data format after display, with Gsonformat will not be good?
9, Codeglance
Can be used to quickly locate the code, see a lot of editors have this feature, just think of Android studio to find the next, and really found
10, Androidproguardplugin
One-click Build Project obfuscation code plug-in, it is worth you to install ~ (but there may be some third-party project confusion has not been added completely)
11. Material Theme UI
Add material theme to your as
Turn from: http://www.jianshu.com/p/6f5f818afe4b There's a richer plugin address: https://ydmmocoo.github.io/2016/06/28/Android-Studio%E6% 8f%92%e4%bb%b6%e6%95%b4%e7%90%86/
Some useful plugins for Android Studio