话不多少,先干起来啦!由于一直用eclipse开发,对AndroidStuidio只有个概念,所以安装了一个AndroidStudio.网址:http://www.androiddevtools.cn/ 由于最近流行mvp模式构建项目,所以我就以MvpDemo为新建的工程命名。
一 插件的安装和简单使用
1.ButterKnife8.51的插件
3.SelectorChapek插件
4.Parcelablec插件
以上安卓步骤很简单,具体是步骤 File --> Setting --> plugins -->然后在输入框里面输入以上的插件名称, 看到最多人下载的你就下载就是啦。下载后AndroidStudio会提示重启,然后你重启就是啦!
注意:由于ButterKnife8.51的插件需要项目依赖ButterKnife8.51才有效果,所以要先在项目下添加相应依赖(
方法一:在对应module(自己的项目)的buildgradle中写入下面代码
dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) compile 'com.android.support:appcompat-v7:25.1.0' testCompile 'junit:junit:4.12' compile 'com.jakewharton:butterknife-compiler:8.5.1' compile 'com.jakewharton:butterknife:8.5.1' })
方法二:直接在项目构建依赖下动态搜索下添加(File --->ProjectStructure--->Dependencies--->add-->libraryDependeny)
二 插件的简单使用
1 ButterKnife插件使用的步骤如下图
详情见:http://blog.csdn.net/niubitianping/article/details/54893571
2GsonFormat插件使用图如下
在以下输入框填入接口返回的json字符串然后点击ok即可
3 .Parcelablec插件的用跟GsonFormat一样,这里就不多说一嘴啦!
4 SelectorChapek插件的使用关键要了解,