Yama Patel
Yama Patel

Reputation: 21

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

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.

Upvotes: 1

Views: 1036

Answers (2)

Karam
Karam

Reputation: 1

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

youradapter.notifyDataSetChanged()

Upvotes: 0

Mohammed Gomaa
Mohammed Gomaa

Reputation: 91

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.

Upvotes: 1

Related Questions