Skip to content

[Android] CarouselView behaves strangely when swiping vertically in view #22507

Open

Description

Ảnh màn hình 2024-05-18 lúc 23 35 27

Please refer to the image above. I'm facing the following issue:
By default, CarouselView displays its items in a horizontal orientation. However, when swiping vertically, the mechanism behaves similarly to swiping horizontally, meaning it will transition to the next item:

  • In Grid View, swiping in any direction will transition to RecyclerView 2.
  • In RecyclerView 1, swiping horizontally will transition to RecyclerView 2, while swiping vertically will scroll to view items within RecyclerView 1, but occasionally, it also transitions to RecyclerView 2 (similar behavior is observed in RecyclerView 2).

Is there a way to prevent vertical swiping behavior in CarouselView? I want to handle it in this way, please help.
All contributions and suggestions for solutions are welcomed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    area-controls-collectionviewCollectionView, CarouselView, IndicatorViewplatform/android 🤖s/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions