android: smoothScrollToPosition() not working correctly

后端 未结 7 2164
心在旅途
心在旅途 2020-12-03 00:11

I\'m trying to smoothly scroll to last element of a list after adding an element to the arrayadapter associated with the listview. The problem is that it just scrolls to a r

7条回答
  •  一个人的身影
    2020-12-03 01:15

    Use LayoutManager to smooth scroll

    layoutManager.smoothScrollToPosition(recyclerView, new RecyclerView.State(), position);
    

提交回复
热议问题