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 Jun 9, 2020. It is now read-only.
Because of the way ListView handles scrolling, an OnScrollListener increments firstVisibleItem as soon as a child view's getBottom() exceeds the ListView's top boundaries. Vice versa, it decrements firstVisibleItem when a child view's getBottom() is within the ListView's top boundaries.
Now consider the case of a ListView with a divider.
All items other than the first item will have a spacing of 8dp above itself. However, ensureShadowForPosition() will recreate the header as soon as the positions don't match and set mTranslateY to 0, causing the newly created header to stick to the top when there should be a divider spacing, causing the header to suddenly "jump" to the top.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Because of the way ListView handles scrolling, an
OnScrollListener
incrementsfirstVisibleItem
as soon as a child view's getBottom() exceeds the ListView's top boundaries. Vice versa, it decrementsfirstVisibleItem
when a child view's getBottom() is within the ListView's top boundaries.Now consider the case of a ListView with a divider.
All items other than the first item will have a spacing of 8dp above itself. However,
ensureShadowForPosition()
will recreate the header as soon as the positions don't match and setmTranslateY
to 0, causing the newly created header to stick to the top when there should be a divider spacing, causing the header to suddenly "jump" to the top.The text was updated successfully, but these errors were encountered: