Line 396: 12-27 17:11:51.280 28863 28863 E rui : onOverScrolled - clampedX = false , clampedY = false
Line 399: 12-27 17:11:51.280 28863 28863 E rui : onOverScrolled - scrollY = 18 , scrollPositionToImmersive = 9, currentShouldToolbarTint = true, currentOverScrollImmersive = false
Line 420: 12-27 17:11:51.282 28863 28863 D ToolbarTintAnimator: startToolbarTintAnimation, isSlidingUp = true, isSelectionMode = false, immediately = false
...............
Line 466: 12-27 17:11:51.315 28863 28863 D CommonUtil: event.deviceID:4
Line 467: 12-27 17:11:51.316 28863 28863 D CommonUtil: versionCode:-1, event.deviceID:4
Line 468: 12-27 17:11:51.317 28863 28863 W RecyclerView: RecyclerView does not support scrolling to an absolute position. Use scrollToPosition instead
Line 469: 12-27 17:11:51.317 28863 28863 W RecyclerView: RecyclerView does not support scrolling to an absolute position. Use scrollToPosition instead
发现log中有 Line 468: 12-27 17:11:51.317 28863 28863 W RecyclerView: RecyclerView does not support scrolling to an absolute position. Use scrollToPosition instead
这段信息,查询源码得知 scrollTo方法在recyclerView中属于空实现,那么为什么会调用到这里ne?
后来发现由于业务需求,在将view的滑动进行统一管理,而recyclerview在集成的时候并没有区分此种情况,所以这里修改的方式有很多种,一个就是更改业务逻辑,一个就是复写scrollTo方法,还有就是在调用internalscroll的时候直接复写view的scrollY以及scrollX属性等,具体取舍以最少修改为准。