Rookie Rookie - 1 year ago 158
Android Question

Difference between bind and injectView in butterknife

I am using butterknife library. I don't know much about how to use it. I found injectView and bind doing the same thing but I am not really sure. Can anyone explain the difference between these two.

Answer Source

Can anyone explain the difference between these two ?

@InjectView was changed to @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( TextView title;

Please check below links. Hope this helps .

  1. JakeWharton Butterknife
  2. The import butterknife.InjectView cannot be resolved

  3. Introduction Butter Knife


compile 'com.jakewharton:butterknife:7.0.1' //8.4.0

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download