I\'m using a simple implementation of RecyclerView taken from the Android website using a StaggeredGridLayoutManager and I keep getting this error
RecyclerView
StaggeredGridLayoutManager
This error is caused if in your XML you have android:animateLayoutChanges set to true and you call notifyDataSetChanged() on the RecyclerView's adapter in the Java code.
android:animateLayoutChanges
notifyDataSetChanged()
So, just avoid using android:animateLayoutChanges with RecyclerViews.