I want to smoothscroll the recyclerview to a random place between two items after clicking a button. By using
smoothScrollBy(dx , dy)
I can get the right place but cant control the speed/duration(too fast,i hope to make it slow).
By using
smoothScrollToPosition()
and implementing calculateSpeedPerPixel()
i can control the speed but cant got the right place (cant stop between two items).
in fact i am looking for a way to do the same work as
ListView.smoothScrollBy(int distance, int duration).
Is there a solution?