I have a RecyclerView
in which i have an image ,a few TextView
s and 2 ImageButton
s.
I have 7-8 such rows to display in my Activity>
I had the same problem. Here is the solution to slow down the fling.
val maxFling=4000
onFlingListener = object : RecyclerView.OnFlingListener() {
override fun onFling(velocityX: Int, velocityY: Int): Boolean {
if (velocityY > maxFling) {
fling(velocityX, maxFling)
return true
} else if (velocityY < -maxFling) {
fling(velocityX, -maxFling)
return true
} else {
return false
}
}
}