(Smooth)ScrollToPosition doesn't work properly with RecyclerView

后端 未结 16 1304
既然无缘
既然无缘 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:03

    recyclerView.getLayoutManager().smoothScrollToPosition(recyclerView,new RecyclerView.State(),currentPosition);

提交回复
热议问题