public interface IViewProvider<T>
Modifier and Type | Method and Description |
---|---|
void |
bindViewHolder(ViewHolder holder,
T t,
int position,
java.util.List<T> list,
IViewProviderListener<T> listener)
根据数据源绑定视图
|
boolean |
isItemViewType(T item) |
ViewHolder |
onCreateViewHolder(android.view.ViewGroup parent,
int viewType) |
ViewHolder onCreateViewHolder(android.view.ViewGroup parent, int viewType)
boolean isItemViewType(T item)
item
- 数据void bindViewHolder(ViewHolder holder, T t, int position, java.util.List<T> list, IViewProviderListener<T> listener)
holder
- 视图t
- 数据position
- 位置