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.
recycler.setHasFixedSize(true);