protected RendererViewHolder buildRendererViewHolder() {
    validateAttributesToCreateANewRendererViewHolder();

    Renderer renderer = getPrototypeByIndex(viewType).copy();
    renderer.onCreate(null, layoutInflater, parent);
    return new RendererViewHolder(renderer);
  }
protected RendererViewHolder buildRendererViewHolder ( ) { validateAttributesToCreateANewRendererViewHolder ( ) ; Renderer renderer = getPrototypeByIndex ( viewType ) . copy ( ) ; renderer . onCreate ( null , layoutInflater , parent ) ; return new RendererViewHolder ( renderer ) ; }
Main method of this class related to RecyclerView widget. This method is the responsible of
create a new Renderer instance with all the needed information to implement the rendering.
This method will validate all the attributes passed in the builder constructor and will create
a RendererViewHolder instance.

This method is used with RecyclerView because the view recycling mechanism is implemented out
of this class and we only have to return new RendererViewHolder instances.

@return ready to use RendererViewHolder instance.