当使用 aRecyclerView和 aGridLayoutManager时,我的单元格总是左对齐:空闲空间总是出现在单元格的右侧。使用ItemDecoration计算偏移量只会使单元格更小,保持单元格右侧的可用空间。 gravity="center"in theRecyclerView和layout_gravity="center"in the cells 无济于事。
当使用 aRecyclerView和 aGridLayoutManager时,我的单元格总是左对齐:空闲空间总是出现在单元格的右侧。使用ItemDecoration计算偏移量只会使单元格更小,保持单元格右侧的可用空间。 gravity="center"in theRecyclerView和layout_gravity="center"in the cells 无济于事。