Android stop infinite loop/repetition in Carousel CoverFlow (moondroid)

1k Views Asked by At

Is there any way to prevent infinite loop/repetition in Moondroid Coverflow (https://github.com/moondroid/CoverFlow).

Automatically connecting the last object to the first object once it gets to the end.

Used below property for prevent infinite loop :

setShouldRepeat(false);

seems to do nothing other than break the coverflow when there are less than four objects. It completely prevents scrolling.

2

There are 2 best solutions below

3
Mohammed Gomaa On

This is what I have got from reported issues on this library : https://github.com/applm/CarouselWidget/issues

Endless feature is hardcoded in this component. Take a look here https://github.com/applm/CarouselWidget I started moving features there. but not finished yet.

0
Karam On

I'm not sure but try to write this in your onResume :

youradapter.notifyDataSetChanged()