Butter Knife v7.0.0 Release Notes
Release Date: 2015-06-27 // almost 9 years ago-
@Bind
replaces@InjectView
and@InjectViews
.ButterKnife.bind
andButterKnife.unbind
replacesButterKnife.inject
andButterKnife.reset
, respectively.@Optional
has been removed. Use@Nullable
from the 'support-annotations' library, or any other annotation named "Nullable".- New: Resource binding annotations!
@BindBool
binds anR.bool
ID to aboolean
field.@BindColor
binds anR.color
ID to anint
orColorStateList
field.@BindDimen
binds anR.dimen
ID to anint
(for pixel size) orfloat
(for exact value) field.@BindDrawable
binds anR.drawable
ID to aDrawable
field.@BindInt
binds anR.int
ID to anint
field.@BindString
binds anR.string
ID to aString
field.
- Fix: Missing views will be filtered out from list and array bindings.
- Note: If you are using Proguard, the generated class name has changed from being suffixed with
$$ViewInjector
to$$ViewBinder
.