现在可以直接在intellij或Android studio里面直接搜索插件“MVPManager”进行安装。
- 可以将创建的所有文件放一个包中;
- 通过单选按钮切换文件创建位置(单包/多包);
- 预览创建的文件所在包的位置;
- You can create all the files in a package.
- Through the radio button to switch the file to create the location (single package / multi-pack).
- Preview the location of the file where the file was created.
- 通过jar包
- By jar
- Download MVPManager jar
- File -> setting -> Plugin -> Install plugin from disk
- Select the jar package you downloaded.
- OK then reboot Intellij/Android studio.
Address: https://github.com/xujiaji/XMVP
下面在编辑界面输入框中看到的XContract.View、XContract.Model、XContract.Presenter就是这个类库的。如果您不使用可以将输入框中的内容删除,添加您需要继承的父类接口,或者不继承父类接口。