码迷,mamicode.com
首页 > 其他好文 > 详细

Butter Knife 使用方法

时间:2014-09-21 13:39:40      阅读:243      评论:0      收藏:0      [点我收藏+]

标签:http   io   使用   java   ar   文件   art   sp   cti   

获取控件

@InjectView(R.id.image_show_password)ImageView image_show_password;

控件事件

@OnClick(R.id.btn_submit) void btn_submit(){
intent=new Intent(context, MobileValidation.class);
startActivity(intent); 
}

配置项目

选择项目属性

选择 Java Compiler->选择 anotaion processin 把Enable project specific settings 和Enableprocessing in editor打上对勾
在选择左侧菜单中的Factory Path AddJARs 选择当前项目中Butter Knife JAR文件

http://jakewharton.github.io/butterknife/ide-eclipse.html

 

Butter Knife 使用方法

标签:http   io   使用   java   ar   文件   art   sp   cti   

原文地址:http://www.cnblogs.com/freexiaoyu/p/3984384.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!