public static void setScrollSpeed(RecyclerView rv, int velocity){
try{
Field field = recyclerView.getClass().getDeclaredField("mMaxFlingVelocity");
field.setAccessible(true);
field.set(recyclerView, velocity);
}catch (Exception e){
e.printStackTrace();
}
}
在需要的地方调用传入
setMaxRecyclerViewFling(recyclerView,6000);