1

So basically I am using this answer to control the speed of the scroll, but my problem is that I need the speed to be constant, and with this solution when the scroll is arriving at the end it starts to slow down.

Gray
  • 81
  • 4

1 Answers1

1

I found a solution. Just override the next function without a body inside class that extend LinearSmoothScroller:

override fun onTargetFound(targetView: View, state: RecyclerView.State, action: Action) {

    }
Gray
  • 81
  • 4