在Activity中ButterKnife.bind(this);必须在setContentView();之后,且父类bind绑定后,子类不需要再bind
在Fragment中ButterKnife.bind(this, view);
在Adapter中ButterKnife.bind(this, view);
属性布局不能使用private、static修饰
---------------------
作者:Tvas
来源:CSDN
原文:https://blog.csdn.net/qq_36946446/article/details/83542314
版权声明:本文为博主原创文章,转载请附上博文链接!
android ButterKnife 使用
最新推荐文章于 2024-04-16 12:11:23 发布