Android 强制停止RecyclerView滑动方法

//强制停止RecyclerView滑动方法
    public static void forceStopRecyclerViewScroll(RecyclerView mRecyclerView) {
        mRecyclerView.dispatchTouchEvent(MotionEvent.obtain(SystemClock.uptimeMillis(), SystemClock.uptimeMillis(), MotionEvent.ACTION_CANCEL, 0, 0, 0));
    }

你可能感兴趣的:(java,android,android,android应用,Studio,YaphetZhao)