sayyam / carouselview

A simple library to add carousel view in android app.
Apache License 2.0
1.15k stars 260 forks source link

DisableAutoPlayOnUserInteraction does not work #90

Open abrahamputraprakasa opened 6 years ago

abrahamputraprakasa commented 6 years ago

Hello, I've create carrouselview with app attribute:

app:disableAutoPlayOnUserInteraction="true"

but when I touch the image, it still automatically sliding to the next image. is there any workaround or something I missed? trying to make it "false" also does nothing.

Thank you

erishiraj commented 5 years ago

app:autoPlay="false"

Bhupathi-Raju commented 4 years ago

"app:disableAutoPlayOnUserInteraction" is working but not in the way you wanted. It's working only when the user scrolls the images in the carousel view.

For the functionality you desire, you can implement OnTouchListener on the view you are inserting inside the carousel view and call the method "carouselview.pauseCarousel()" on DOWN action and "carouselview.playCarousel() on event UP action.