动图使用详细
1.安装插件
2. 配置 gradle
dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) compile 'com.jakewharton:butterknife:8.5.1' annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1' compile "com.android.support:support-v4:$SUPPORT_VERSION" compile "com.android.support:design:$SUPPORT_VERSION" testCompile "junit:junit:$JUNIT_VERSION" }
apply plugin: 'com.jakewharton.butterknife'
buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.3.1' classpath 'com.jakewharton:butterknife-gradle-plugin:8.5.1' classpath 'org.greenrobot:greendao-gradle-plugin:3.2.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { jcenter() } } task clean(type: Delete) { delete rootProject.buildDir }
3.使用
捐助开发者
在兴趣的驱动下,写一个免费
的东西,有欣喜,也还有汗水,希望你喜欢我的作品,同时也能支持一下。 当然,有钱捧个钱场(支持支付宝和微信捐助,加入it技术扣扣群),没钱捧个人场,谢谢各位。
谢谢您的赞助,我会做的更好!
相关推荐
对应博客地址:http://blog.csdn.net/wl1769127285/article/details/53740482
ButterKnife等第三方插件的使用示例,但是记得先配置好各个插件
主要介绍了android studio 安装完成ButterKnife插件却无法使用问题,本文通过图文并茂的形式给大家分享解决方法,对大家有非常好的帮助,需要的朋友可以参考下
AndrodStudio添加 ButterKnife插件的步骤.doc
butterknife butterknife-annotations butterknife-compiler butterknife-gradle-plugin New: Support for Jack compiler in application projects. Fix: Generate ~20% less code and ~40% less methods. Fix: ...
本文目录ButterKnife 概述使用前准备添加依赖ButterKnife绑定Activity绑定Fragment绑定RecyclerView Adapter绑定基本用法控件注解事件注解资源注解ButterKnife 插件插件添加插件使用自动生成View注解自动生成点击...
Android-ButterKnife-Injections插件 支持2021以上版本,直接拷贝到安装包的插件文件夹下,升级Android studio后插件不能用了,自己load资源根据issues修复建议重新编译了
本篇文章主要介绍了Android Studio中ButterKnife插件的安装与使用详解,具有一定的参考价值,感兴趣的小伙伴们可以参考一下
添加完插件后在Android Studio的Generate中使用,减少一些重复代码的工作量,一键生成代码;
博客介绍:http://blog.csdn.net/qq_21376985/article/details/52836423 【Android】Android开发之著名框架ButterKnife的使用详解,butterknife8.1.0版本的使用方法
eventbus和butterknife的基本使用
ButterKnife的简单使用的源码,绑定控件点击事件,这是一个ListView的使用案例
压缩包中包含 android-butterknife-zelezny.jar 和 butterknife-plugin.jar;其中 butterknife-plugin.jar是最新版Butterknife插件,支持butterknife 6.0及7.0,比原始插件多了onClick,及一些微小改变。
butterKnife和 Glide 使用demo
本例使用的是butterknife8.04
当你的项目不再使用 ButterKnife 了,你该怎么处理已经注解的代码?RemoveButterKnife 一个可以把 注解代码还原为 findViewById 样式的一个AndroidStudio....zip,一个android工作室插件,可以帮助移除butterknife的使用
配合教程:Android框架之路——ButterKnife的使用
具体内容请看博文:http://www.jcodecraeer.com/plus/view.php?aid=3113
butterknife:7.1.0+ButterKnife