摘要: 1、app build.gradle中添加代码 2、在xml布局文件中,添加根布局 <layout> ....</layout> 3、activity的oncreate方法中 添加 4、此时你会发现在as中使用 viewDataBinding. 就会提示出你布局文件中的控件,也就是直接使用了。不过命 阅读全文
posted @ 2017-06-22 10:14 epmouse 阅读(849) 评论(0) 推荐(0) 编辑
摘要: 使用apt来导入butterknife和dagger的时候,会报警告 (在引用databinding的时候会报,其他不会)Warning:Using incompatible plugins for the annotation processing: android-apt. This may r 阅读全文
posted @ 2017-06-22 09:30 epmouse 阅读(2992) 评论(0) 推荐(1) 编辑