Closed jilulu closed 6 years ago
I used PageSnapHelper
to implement auto play at first. But I find it scrolled more than one item sometimes, because before it was considered as fling, maybe you have already dragged it to the next position.I haven't figured out the proper way to solve this problem without rewrite the onTouchEvent
of RecyclerView
. So I left it as a imperfect PageSnapHelper
and just forgot to change the comment, srr.
Cause PageSnapHelper
extends CenterSnapHelper
and only rewrite onFling
, You can change AutoPlay's inheritance to subclassing PageSnapHelper
. But still, it is imperfect.
Thanks for the prompt response! Closing this one.
(BTW that's an outstanding library you've built. )
... since the documentation of PageSnapHelper says
Would there be side effects if in a production project, I changed AutoPlay's inheritance to subclassing PageSnapHelper?
Thanks so much!