android stdio 使用butterknife的方法

来源:互联网 发布:博雅大数据学院 官网 编辑:程序博客网 时间:2024/05/28 17:08

1,首先要做好界面

然后引入的方法是

compile 'com.jakewharton:butterknife:8.5.1'annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1'
2,点击

setContentView(R.layout.activity_main);

点击 alt+ insert 即可完成