Hello,
On native Android, you could override those method you mentioned to change the speed of scrolling.
However, there is no such an API to cancel the scrolling time to make scrolling be immediate (0 seconds).
If you refer to the source code of the SmoothScrollToPosition
method, the function called will eventually be called by the internal class of RecyclerView
, ViewFlinger's postOnAnimation()
method to play the scroll animation.
Best Regards,
Alec Liu.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.