DisableAutoPlayOnUserInteraction does not work
abrahamputraprakasa opened this issue · 2 comments
abrahamputraprakasa commented
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
app:autoPlay="false"
Bhupathi-Raju commented
"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.