public class EventHookUtil
extends java.lang.Object
| Constructor and Description |
|---|
EventHookUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <Item extends IItem> |
attachToView(EventHook<Item> event,
RecyclerView.ViewHolder viewHolder,
android.view.View view)
attaches the specific event to a view
|
static <Item extends IItem> |
bind(RecyclerView.ViewHolder viewHolder,
java.util.List<EventHook<Item>> eventHooks)
binds the hooks to the viewHolder
|
static java.util.List<android.view.View> |
toList(android.view.View... views)
a small helper to get a list of views from a dynamic amout of views.
|
public static <Item extends IItem> void bind(RecyclerView.ViewHolder viewHolder, java.util.List<EventHook<Item>> eventHooks)
viewHolder - the viewHolder of the itempublic static <Item extends IItem> void attachToView(EventHook<Item> event, RecyclerView.ViewHolder viewHolder, android.view.View view)
event - the event to attachviewHolder - the viewHolder containing this viewview - the view to attach topublic static java.util.List<android.view.View> toList(android.view.View... views)
views - the views to get as list