I have a RecyclerView with a horizontal linear layout manager declared like this:
RecyclerView graph = (RecyclerView) findViewById(R.id.graph);
RecyclerView
I removed recycler.setHasFixedSize(true);
and now it works. I have no idea why this would be related though.
This may happen because of setting recycler.setHasStableIds(true)
and then using item's position to assign the getItemId
in the adapter.
This will just update that one position and other items won't be shifted as they have should.