ButterKnife
suggest changeVersions
Butter Knife is a third-party library. It is not an Android framework API, and it is not tied to Android 3.0.
Introduction
Butter Knife is a view-binding tool that uses annotations to generate boilerplate. Jake Wharton wrote it at Square. It replaces repeated findViewById(R.id.view) calls so the code that uses views stays shorter.
To be clear, Butterknife is not a dependency injection library. Butterknife injects code at compile time. It is very similar to the work done by Android Annotations.
Remarks
ButterKnife
Field and method binding for Android views which uses annotation processing to generate boilerplate code for you.
- 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.
More info: http://jakewharton.github.io/butterknife/
License
Copyright 2013 Jake Wharton
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.