public class DefaultProvider extends java.lang.Object implements IViewProvider
Constructor and Description |
---|
DefaultProvider() |
Modifier and Type | Method and Description |
---|---|
void |
bindViewHolder(ViewHolder holder,
java.lang.Object o,
int position,
java.util.List list,
IViewProviderListener listener)
根据数据源绑定视图
|
boolean |
isItemViewType(java.lang.Object item) |
ViewHolder |
onCreateViewHolder(android.view.ViewGroup parent,
int viewType) |
public ViewHolder onCreateViewHolder(android.view.ViewGroup parent, int viewType)
onCreateViewHolder
in interface IViewProvider
public boolean isItemViewType(java.lang.Object item)
isItemViewType
in interface IViewProvider
item
- 数据public void bindViewHolder(ViewHolder holder, java.lang.Object o, int position, java.util.List list, IViewProviderListener listener)
IViewProvider
bindViewHolder
in interface IViewProvider
holder
- 视图o
- 数据position
- 位置