Azoft / CarouselLayoutManager

Android Carousel LayoutManager for RecyclerView
Apache License 2.0
2.56k stars 367 forks source link

Disable interaction for items which are not in center #92

Closed alinberce closed 5 years ago

alinberce commented 5 years ago

Given a layout that has items with interactive views (Buttons for instance), the user can tap on buttons which are not in the centered item. How could I disable interaction with other views beside the centered one?

git_carousel

mig35 commented 5 years ago

@alinberce yep this is true. You can manually do this by listening for current center item by OnCenterItemSelectionListener and disable buttons that are not on center.