use of com.zhy.adapter.recyclerview.base.ItemViewDelegate in project baseAdapter by hongyangAndroid.
the class MultiItemTypeAdapter method onCreateViewHolder.
@Override
public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
ItemViewDelegate itemViewDelegate = mItemViewDelegateManager.getItemViewDelegate(viewType);
int layoutId = itemViewDelegate.getItemViewLayoutId();
ViewHolder holder = ViewHolder.createViewHolder(mContext, parent, layoutId);
onViewHolderCreated(holder, holder.getConvertView());
setListener(parent, holder, viewType);
return holder;
}
Aggregations