public final class ButterKnife
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static Unbinder |
bind(android.app.Activity target)
BindView annotated fields and methods in the specified
Activity. |
static Unbinder |
bind(android.app.Dialog target)
BindView annotated fields and methods in the specified
Dialog. |
static Unbinder |
bind(java.lang.Object target,
android.app.Activity source)
BindView annotated fields and methods in the specified
target using the source
Activity as the view root. |
static Unbinder |
bind(java.lang.Object target,
android.app.Dialog source)
BindView annotated fields and methods in the specified
target using the source
Dialog as the view root. |
static Unbinder |
bind(java.lang.Object target,
android.view.View source)
BindView annotated fields and methods in the specified
target using the source
View as the view root. |
static Unbinder |
bind(android.view.View target)
BindView annotated fields and methods in the specified
View. |
static void |
setDebug(boolean debug)
Control whether debug logging is enabled.
|
public static void setDebug(boolean debug)
public static Unbinder bind(android.app.Activity target)
Activity. The current content
view is used as the view root.target - Target activity for view binding.public static Unbinder bind(android.view.View target)
View. The view and its children
are used as the view root.target - Target view for view binding.public static Unbinder bind(android.app.Dialog target)
Dialog. The current content
view is used as the view root.target - Target dialog for view binding.public static Unbinder bind(java.lang.Object target,
android.app.Activity source)
target using the source
Activity as the view root.target - Target class for view binding.source - Activity on which IDs will be looked up.public static Unbinder bind(java.lang.Object target,
android.app.Dialog source)
target using the source
Dialog as the view root.target - Target class for view binding.source - Dialog on which IDs will be looked up.public static Unbinder bind(java.lang.Object target,
android.view.View source)
target using the source
View as the view root.target - Target class for view binding.source - View root on which IDs will be looked up.