(Smooth)ScrollToPosition doesn't work properly with RecyclerView

后端 未结 16 1384
既然无缘
既然无缘 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 04:50

    In My case,

    `mRecyclerView.scrollToPosition(10);` 
    

    also did not work. But

    `mRecyclerView.smoothScrollToPosition(10);` 
    

    works fine for me...

提交回复
热议问题