You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 26, 2019. It is now read-only.
It is an overscroll issue, it happens in horizontal mode too. I think there is some error in the scrollBy method and, more specifically, in how the end value is computed (the overscroll seems to be exactly one extra span).
Try to override the scrollBy method and replace the line:
val end = layoutEnd + rectsHelper.itemSize + paddingEndLayout
with:
var end = 0
for (i in (state.itemCount - 1) downTo 0) {
val rect = childFrames[state.itemCount - 1]
if (rect != null) {
end = rect.right + paddingEndLayout
break
}
}
and the line:
if (scroll + size > end && (firstVisiblePosition + childCount + spans) >= state.itemCount) {
with:
if (end != 0 && scroll + size > end && (firstVisiblePosition + childCount + spans) >= state.itemCount) {
and let me know.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I just try version 3.0.2 when I scroll down to the bottom I found an empty space like this
I also add items at the start to show that empty space is still at the bottom
What I want to ask is, is this normal or I just did something wrong?
Setup layout
MainActivity's layout
Item's layout
The text was updated successfully, but these errors were encountered: