public class SimpleViewBinder<V extends View> extends java.lang.Object implements ViewBinder<V>
ViewBinder
. This can be useful if
we need to override only one method.Constructor and Description |
---|
SimpleViewBinder() |
Modifier and Type | Method and Description |
---|---|
void |
bind(V view)
Binds data to the given view so it can be rendered on screen.
|
void |
prepare()
Prepares the binder to be bound to a view.
|
void |
unbind(V view)
Cleans up a view that goes off screen after it has already been bound.
|
public void prepare()
ViewBinder
Use this method to perform calculations ahead of time and save them.
prepare
in interface ViewBinder<V extends View>
public void bind(V view)
ViewBinder
bind
in interface ViewBinder<V extends View>
view
- the view to bind.public void unbind(V view)
ViewBinder
unbind
in interface ViewBinder<V extends View>
view
- the view to unbind.