use of com.github.pedrovgs.sample.renderer.rendererbuilder.PlacesCollectionRendererBuilder in project DraggablePanel by pedrovgs.
the class MainModule method providePlaceCollectionRendererBuilder.
/**
* Provisioning of a RendererBuilder implementation to work with places ListView. More
* information in this library: {@link https://github.com/pedrovgs/Renderers}
*/
@Provides
protected PlacesCollectionRendererBuilder providePlaceCollectionRendererBuilder(Context context) {
List<Renderer<PlaceViewModel>> prototypes = new LinkedList<Renderer<PlaceViewModel>>();
prototypes.add(new PlaceRenderer(context));
return new PlacesCollectionRendererBuilder(prototypes);
}
Aggregations