@Override
    public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        //TODO OPTIMIZE
        for (Item item : mItems) {
            if (item.getType() == viewType) {
                return item.getViewHolder(parent);
            }
        }
        return mAdapter.onCreateViewHolder(parent, viewType);
    }
@ Override public RecyclerView . ViewHolder onCreateViewHolder ( ViewGroup parent , int viewType ) { for ( Item item : mItems ) { if ( item . getType ( ) == viewType ) { return item . getViewHolder ( parent ) ; } } return mAdapter . onCreateViewHolder ( parent , viewType ) ; }
the onCreateViewHolder is managed by the FastAdapter so forward this correctly

@param parent
@param viewType
@return