I\'m using a simple implementation of RecyclerView taken from the Android website using a StaggeredGridLayoutManager and I keep getting this error
RecyclerView
StaggeredGridLayoutManager
I solved this issue by calling
setHasStableIds(true);
in the adapter's constructor and overriding getItemId in the adapter:
getItemId
@Override public long getItemId(int position) { return position; }