@ Override public RendererViewHolder onCreateViewHolder ( ViewGroup viewGroup , int viewType ) { rendererBuilder . withParent ( viewGroup ) ; rendererBuilder . withLayoutInflater ( LayoutInflater . from ( viewGroup . getContext ( ) ) ) ; rendererBuilder . withViewType ( viewType ) ; RendererViewHolder viewHolder = rendererBuilder . buildRendererViewHolder ( ) ; if ( viewHolder == null ) { throw new NullRendererBuiltException ( "RendererBuilder have to return a not null viewHolder" ) ; } return viewHolder ; }
One of the two main methods in this class . Creates a RendererViewHolder instance with a Renderer inside ready to be used . The RendererBuilder to create a RendererViewHolder using the information given as parameter .