StaggeredGridLayoutManager: Adding Margin makes the layout items pushed to the side
问题 So, I'm working on a small project and I wanted to add StaggeredGridLayoutManager to the file. While it works if I don't add an itemDecorator and no margin or padding in my layouts. As soon as I add margins it pushes the list to one side. I'm attaching a screenshot to clarify the issue. Here is my Code: recyclerView.setHasFixedSize(true); StaggeredGridLayoutManager gridLayoutManager = new StaggeredGridLayoutManager(2, StaggeredGridLayoutManager.VERTICAL); recyclerView.addItemDecoration(new