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.

1 Answer 1

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) { } 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.