Closed quanlt closed 5 years ago
I solved this problem by changing the layoutResId
val layout = if (flag) R.layout.carsouel_full_size else R.layout.no_animation_carousel
NoAnimationCarouselModel_()
.id(1)
.models(models)
.layout(layout)
.addTo(controller)
is it solved?
Thank you for the great library 👍 I have a problem, and i hope that you can help me. I have two lists, it will be added to the carousel.
layout :
The visiblity of ItemModelView will be decided based on
shouldShow
flag, and the initial list islist1
if we update finalList to list2 (the 2nd item will be removed), the item height will not be updated. it works perfectly with the normal epoxy recyclerview, but it doesn't work with carousel. source code: https://github.com/quanlt/EpoxyCarouselSample
Am I missing something? Thank you