如何删除间距Horizo​​ntal GridLayoutManager recyclerview android

时间:2016-07-01 10:24:02

标签: android android-recyclerview spacing gridlayoutmanager

我将recyclerview与grid layoutmanager一起使用 我没有添加ItemDecoration

GridLayoutManager gridLayoutManager = new GridLayoutManager(TestResultActivity.this, 4, GridLayoutManager.HORIZONTAL, false);
            gridLayoutManager.setAutoMeasureEnabled(true);
            grid.setLayoutManager(gridLayoutManager);

但是在两行之间,有一行,我不添加它。我想删除它。

enter image description here

0 个答案:

没有答案