3 years have passed, but no answer yet. I found some workaround to achieve it.
In fact, this is a kind of advanced topic, since there are many nuances, but basically you can reference the Android source code (in particular, the OverScroller class) and use this method. You will need to copy it to your class and use it.
private double getSplineFlingDistance(int velocity) { final double l = getSplineDeceleration(velocity); final double decelMinusOne = DECELERATION_RATE - 1.0; return mFlingFriction * PHYSICAL_COEF * Math.exp(DECELERATION_RATE / decelMinusOne * l); }
Other methods and values ββcan be obtained from the same class. Source Code Link: https://android.googlesource.com/platform/frameworks/base/+/jb-release/core/java/android/widget/OverScroller.java
Keep in mind that on some devices the value may be different (not too much). Some manufacturers change the formula depending on their requirements and equipment to make it smoother.
source share