Carousel
This feature is in Beta - please report bugs, feature requests, or other feedback at https://github.com/airbnb/epoxy by creating a new issue. Thanks!
This is intended as a plug and play "Carousel" view - a Recyclerview with horizontal scrolling. It comes with common defaults and performance optimizations and can be either used as a top level RecyclerView, or nested within a vertical recyclerview.
This class provides:
1. Automatic integration with Epoxy. A CarouselModel_ is generated from this class, which you can use in your EpoxyController. Just call setModels to provide the list of models to show in the carousel.
2. Default padding for carousel peeking, and an easy way to change this padding -
3. Easily control how many items are shown on screen in the carousel at a time -
4. Easy snap support. By default a LinearSnapHelper is used, but you can set a global default for all Carousels with setDefaultGlobalSnapHelperFactory
5. All of the benefits of EpoxyRecyclerView
If you need further flexibility you can subclass this view to change its width, height, scrolling direction, etc. You can annotate a subclass with ModelView to generate a new EpoxyModel.