lsjwzh / RecyclerViewPager

Deprecated
Apache License 2.0
3.53k stars 667 forks source link

disallow touch event switching when there is only one viewHolder #152

Open sokarcreative opened 7 years ago

sokarcreative commented 7 years ago

Hi everyone,

I have an issue with each recyclerview holder in my recyclerViewPager. It seems that when I'm scrolling all the way down or all the way up, the current recyclerview seems to try to switch with the previous or next recyclerview. Is it a feature or a bug ? It's not really a problem when there are more than one viewholder in my recyclerViewPager but I want to disallow this behavior when I have only one element in the recyclerViewPager. Because scrolling all the way down seems to freeze a little bit as it tried to switch with a potential next or previous recyclerviewpager viewholder. So the question is : Is it possible to disallow touch event switching when there is only one viewHolder in recyclerViewPager.

Thanks in advance !