What is ButterKnife?

ButterKnife is a field and method binding for Android views which uses annotation processing to generate boilerplate code for you.

Features:

  • Eliminate findViewById calls by using @BindView on fields.
  • Group multiple views in a list or array. Operate on all of them at once with actions, setters, or properties.
  • Eliminate anonymous inner-classes for listeners by annotating methods with @OnClick and others.
  • Eliminate resource lookups by using resource annotations on fields.

Overview