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 .