ImaginativeShohag / Why-Not-Image-Carousel

Why Not use Image Carousel if you have lots of images to show!
https://imaginativeshohag.github.io/Why-Not-Image-Carousel/
Apache License 2.0
466 stars 68 forks source link

How to ensure the Showcase Carousel is only able to scroll through one item at a time? #88

Closed shwetankshrey closed 2 years ago

shwetankshrey commented 2 years ago

I have a Carousel with app:carouselType set to "SHOWCASE" and app:carouselGravity set to "CENTER". Currently on swiping through the carousel long enough, it scrolls through multiple CarouselItems. How do I ensure that the user can only scroll through the carousel one CarouselItem at a time?

prometteursol commented 2 years ago

Same issue here please can you tell as soon as possible. I also waiting for answer.

ImaginativeShohag commented 2 years ago

How do I ensure that the user can only scroll through the carousel one CarouselItem at a time?

There is no ready to use way to do that.

You can fork the repo and update CarouselLinearLayoutManager class and slow down the scroll speed like this.

prometteursol commented 2 years ago

But for this you can use SnapHelper for recyclerview

ImaginativeShohag commented 2 years ago

@prometteursol You can try and if you succeed share the solution, please :). Thank you. I also will try if I get time.

prometteursol commented 2 years ago

I don't have access of Recyclerview of the library

ImaginativeShohag commented 2 years ago

I mean clone or fork the repo.

prometteursol commented 2 years ago

Okk

On Thu, Jul 28, 2022, 3:11 AM Md. Mahmudul Hasan Shohag < @.***> wrote:

I mean clone or fork the repo.

— Reply to this email directly, view it on GitHub https://github.com/ImaginativeShohag/Why-Not-Image-Carousel/issues/88#issuecomment-1197399006, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARDNMFWHKF5KEHB6VDUKMGDVWGUJPANCNFSM54CYIK7A . You are receiving this because you were mentioned.Message ID: @.***>