我正在使用butterknife库.我不太了解如何使用它.我发现injectView和bind做同样的事情,但我不太确定.任何人都可以解释这两者之间的区别.
解决方法
谁能解释这两者之间的区别?
@InjectView已更改为@Bind.
Annotate fields with @Bind and a view ID for Butter Knife to find and
automatically cast the corresponding view in your layout.
class YourActivity extends Activity { @Bind(R.id.TvTitle) TextView title;
请检查以下链接.希望这可以帮助 .
> JakeWharton Butterknife
> The import butterknife.InjectView cannot be resolved
> Introduction Butter Knife
摇篮
compile 'com.jakewharton:butterknife:7.0.1' //8.4.0
07003