public abstract class CroPickerRecyclerAdapter<T,H extends android.support.v7.widget.RecyclerView.ViewHolder>
extends android.support.v7.widget.RecyclerView.Adapter<android.support.v7.widget.RecyclerView.ViewHolder>
| Constructor and Description |
|---|
CroPickerRecyclerAdapter(android.content.Context context) |
| Modifier and Type | Method and Description |
|---|---|
void |
addItems(java.util.ArrayList<T> items) |
android.content.Context |
getContext() |
T |
getItem(int position) |
int |
getItemCount() |
abstract void |
onBindView(H holder,
int position) |
void |
onBindViewHolder(android.support.v7.widget.RecyclerView.ViewHolder holder,
int position) |
void |
updateItems(java.util.ArrayList<T> items) |
bindViewHolder, createViewHolder, getItemId, getItemViewType, hasObservers, hasStableIds, notifyDataSetChanged, notifyItemChanged, notifyItemChanged, notifyItemInserted, notifyItemMoved, notifyItemRangeChanged, notifyItemRangeChanged, notifyItemRangeInserted, notifyItemRangeRemoved, notifyItemRemoved, onAttachedToRecyclerView, onBindViewHolder, onCreateViewHolder, onDetachedFromRecyclerView, onFailedToRecycleView, onViewAttachedToWindow, onViewDetachedFromWindow, onViewRecycled, registerAdapterDataObserver, setHasStableIds, unregisterAdapterDataObserverprotected java.util.ArrayList<T> items
public CroPickerRecyclerAdapter(android.content.Context context)
public android.content.Context getContext()
public void addItems(java.util.ArrayList<T> items)
public void updateItems(java.util.ArrayList<T> items)
public T getItem(int position)
public void onBindViewHolder(android.support.v7.widget.RecyclerView.ViewHolder holder,
int position)
onBindViewHolder in class android.support.v7.widget.RecyclerView.Adapter<android.support.v7.widget.RecyclerView.ViewHolder>public abstract void onBindView(H holder, int position)
public int getItemCount()
getItemCount in class android.support.v7.widget.RecyclerView.Adapter<android.support.v7.widget.RecyclerView.ViewHolder>