(Smooth)ScrollToPosition doesn't work properly with RecyclerView

后端 未结 16 1035
既然无缘
既然无缘 2020-12-03 04:29

I\'m using basic RecyclerView with GridLayoutManager. I observed that nor smoothScrollToPosition nor scrollToPosition works properly.

a) when using smoothScrol

16条回答
  •  有刺的猬
    2020-12-03 05:00

    Finally I was able to make it work! LinearLayoutManager.scrollToPositionWithOffset(int, int) did the trick.

提交回复
热议问题