when calling notifyDataSetChanged
on RecyclerView
it doesn\'t retain the scroll position and scrolls to top, is there any solution to retain it\'s
RecycleViews will scroll back to the top on any variant of notifyDataSetChanged
if they don't have a layout manager. Here's an example of how to set one.
LinearLayoutManager linearLayoutManager = new LinearLayoutManager(context, OrientationHelper.VERTICAL, false);
recycleView.setLayoutManager(linearLayoutManager);