compat/src/main/java/androidx/core/widget/AutoScrollHelper.java
public void computeScrollDelta() {
            if (mDeltaTime == 0) {
                throw new RuntimeException("Cannot compute scroll delta before calling start()");
            }

            final long currentTime = AnimationUtils.currentAnimationTimeMillis();
            final float value = getValueAt(currentTime);
            final float scale = interpolateValue(value);
            final long elapsedSinceDelta = currentTime - mDeltaTime;

            mDeltaTime = currentTime;
            mDeltaX = (int) (elapsedSinceDelta * scale * mTargetVelocityX);
            mDeltaY = (int) (elapsedSinceDelta * scale * mTargetVelocityY);
        }
/**
         * Computes the current scroll deltas. This usually only be called after
         * starting the scroller with {@link #start()}.
         *
         * @see #getDeltaX()
         * @see #getDeltaY()
         */
Computes the current scroll deltas. This usually only be called after
starting the scroller with  #start().


Computes the current scroll deltas . This usually only be called after starting the scroller with #start () .
public void computeScrollDelta() {
            if (mDeltaTime == 0) {
                throw new RuntimeException("Cannot compute scroll delta before calling start()");
            }
            final long currentTime = AnimationUtils.currentAnimationTimeMillis();
            final float value = getValueAt(currentTime);
            final float scale = interpolateValue(value);
            final long elapsedSinceDelta = currentTime - mDeltaTime;
            mDeltaTime = currentTime;
            mDeltaX = (int) (elapsedSinceDelta * scale * mTargetVelocityX);
            mDeltaY = (int) (elapsedSinceDelta * scale * mTargetVelocityY);
        }
public void computeScrollDelta ( ) { if ( mDeltaTime == 0 ) { throw new RuntimeException ( "Cannot compute scroll delta before calling start()" ) ; } final long currentTime = AnimationUtils . currentAnimationTimeMillis ( ) ; final float value = getValueAt ( currentTime ) ; final float scale = interpolateValue ( value ) ; final long elapsedSinceDelta = currentTime - mDeltaTime ; mDeltaTime = currentTime ; mDeltaX = ( int ) ( elapsedSinceDelta * scale * mTargetVelocityX ) ; mDeltaY = ( int ) ( elapsedSinceDelta * scale * mTargetVelocityY ) ; }
Computes the current scroll deltas.
Computes the current scroll deltas .