// See https://github.com/JetBrains/gradle-intellij-plugin/ intellij { version '201.8743.12' type 'IC' plugins = ['android', 'java'] } runIde { // Absolute path to installed target 3.5 Android Studio to use as IDE Development Instance // The "Contents" directory is macOS specific. // ideDirectory '/Applications/Android Studio.app/Contents' //for mac // ideDirectory '/home/huangyuan/androidStudio' //for linux ideDirectory 'G:\\AndroidStudio'//for window }
@Override publicvoidupdate(@NotNull AnActionEvent e) { // Using the event, evaluate the context, and enable or disable the action. e.getPresentation().setEnabledAndVisible(e.getProject() != null); } @Override publicvoidactionPerformed(@NotNull AnActionEvent event) { // Using the event, implement an action. For example, create and show a dialog. }
解析出来的数据存入ArrayList中,在解析过程中,保存了对应id、判断是否引用了android name space中id、将id的值转化为对应的字段名字、保存了是是否为自定义的view等信息
1 2 3 4 5 6 7 8
public String id; publicbooleanisAndroidNS=false; public String nameFull; // element name with package public String name; // element name public String fieldName; // name of variable publicbooleanisValid=false; publicbooleanused=true; publicbooleanisClick=true;