# MultiItemTypeAdapter

public class MultiItemTypeAdapter<T>

## Constructors

MultiItemTypeAdapter
Link copied to clipboard
public void MultiItemTypeAdapter()

## Types

OnItemClickListener
Link copied to clipboard
public interface OnItemClickListener<T>

## Functions

addData
Link copied to clipboard
public void addData(List<T> data)
addItemViewDelegate
Link copied to clipboard
public MultiItemTypeAdapter addItemViewDelegate(ItemViewDelegate<T> itemViewDelegate)
public MultiItemTypeAdapter addItemViewDelegate(int viewType, ItemViewDelegate<T> itemViewDelegate)
convert
Link copied to clipboard
public void convert(ViewHolder holder, T t, int position)
getData
Link copied to clipboard
public List<T> getData()
getItem
Link copied to clipboard
public T getItem(int position)
getItemCount
Link copied to clipboard
public int getItemCount()
getItemViewType
Link copied to clipboard
public int getItemViewType(int position)
onBindViewHolder
Link copied to clipboard
public void onBindViewHolder(ViewHolder holder, int position)
onCreateViewHolder
Link copied to clipboard
public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType)
onViewHolderCreated
Link copied to clipboard
public void onViewHolderCreated(ViewHolder holder, View itemView)
setData
Link copied to clipboard
public void setData(List<T> data)
public void setData(int position, T data)
setOnItemClickListener
Link copied to clipboard
public void setOnItemClickListener(MultiItemTypeAdapter.OnItemClickListener<T> onItemClickListener)