方案1:

该方案根据实际情况,会出现几种问题,参考:https://www.jianshu.com/p/a5cd3cff2f1b

rv.smoothScrollToPosition(position)

 

方案2:

该方案可以解决方案1中出现的问题,但不是平滑的滚动到指定位置

layoutManager.scrollToPositionWithOffset(position,0)

 

相关文章:

  • 2022-12-23
  • 2021-07-21
  • 2022-01-24
  • 2021-09-02
  • 2022-12-23
  • 2021-11-17
猜你喜欢
  • 2021-11-08
  • 2021-11-01
  • 2021-06-25
  • 2022-12-23
  • 2021-05-24
  • 2022-12-23
相关资源
相似解决方案