We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c4bc31 commit f7fadfdCopy full SHA for f7fadfd
app/src/main/java/com/hoc/pagination_mvi/ui/main/MainFragment.kt
@@ -94,7 +94,7 @@ class MainFragment : Fragment() {
94
outRect.top = space
95
outRect.bottom = 0
96
97
- val column = position % maxSpanCount - 1
+ val column = (position - 1) % maxSpanCount
98
outRect.right = space * (column + 1) / maxSpanCount
99
outRect.left = space - space * column / maxSpanCount
100
}
0 commit comments