One of my CSDN blog link address 51241778
An Android Studio development plugin that co-XUTILS3 generated annotations, based on Android-butterknife-zelezny, thanks to Android-butterknife-zelezny.
There's nothing to say, just look at the graph, one-click to generate the View declaration and XUTILS3 annotations from the layout file:
How to use 1. Select File---> Settings-----> Plugins----> Install plugin from disk
2. Select the downloaded Xutils_inject.jar import, restart Android Studio Android project must first introduce XUTILS3, otherwise there will be some problems.
- Right-click on the layout ID used (for example, R.layout.activity_main in), then select
Generate
Generate Xutils3 Injections
- Select the View you want to inject in the dialog box, and there is an option to create a viewholder for Adapter.
-
点击 Confirm
, the code is automatically generated!
Description of the low version of Android studio such as 1.4 is not supported, do not know what the reason. Test the 2.0,2.1 support. Because I am not familiar with the development of plug-ins, interested friends please download the code on their own to study the changes, thank you. Code Download link
Android Studio generates plugins for XUTILS3 injection