I am using a RecyclerView, I add items before the first item, the scroll position moves up to the newly first item added. How can I maintain my scroll position after adding new items at its first index and call notifydatasetchange()
?
this is what i do in my adapter
mCurrentFragment.items.addAll(0, createLineItems(dataArrayList));
notifyDataSetChanged();
Any suggestions ?