Search in sources :

Example 1 with TvShowCollectionRendererBuilder

use of com.github.pedrovgs.sample.renderer.rendererbuilder.TvShowCollectionRendererBuilder in project DraggablePanel by pedrovgs.

the class MainModule method provideTvShowCollectionRendererBuilder.

/**
   * Provisioning of a RendererBuilder implementation to work with tv shows ListView. More
   * information in this library: {@link https://github.com/pedrovgs/Renderers}
   */
@Provides
protected TvShowCollectionRendererBuilder provideTvShowCollectionRendererBuilder(Context context) {
    List<Renderer<TvShowViewModel>> prototypes = new LinkedList<Renderer<TvShowViewModel>>();
    prototypes.add(new TvShowRenderer(context));
    return new TvShowCollectionRendererBuilder(prototypes);
}
Also used : PlaceRenderer(com.github.pedrovgs.sample.renderer.PlaceRenderer) Renderer(com.pedrogomez.renderers.Renderer) TvShowRenderer(com.github.pedrovgs.sample.renderer.TvShowRenderer) TvShowViewModel(com.github.pedrovgs.sample.viewmodel.TvShowViewModel) TvShowCollectionRendererBuilder(com.github.pedrovgs.sample.renderer.rendererbuilder.TvShowCollectionRendererBuilder) TvShowRenderer(com.github.pedrovgs.sample.renderer.TvShowRenderer) LinkedList(java.util.LinkedList) Provides(dagger.Provides)

Aggregations

PlaceRenderer (com.github.pedrovgs.sample.renderer.PlaceRenderer)1 TvShowRenderer (com.github.pedrovgs.sample.renderer.TvShowRenderer)1 TvShowCollectionRendererBuilder (com.github.pedrovgs.sample.renderer.rendererbuilder.TvShowCollectionRendererBuilder)1 TvShowViewModel (com.github.pedrovgs.sample.viewmodel.TvShowViewModel)1 Renderer (com.pedrogomez.renderers.Renderer)1 Provides (dagger.Provides)1 LinkedList (java.util.LinkedList)1