New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using this library with RecyclerView having layout as StaggeredGridLayout #63
Comments
You should probably incorporate ICustomScroller. For |
Is it from the top to the first visible item or from the top of the frst visible item ? Also that will |
From the to of the list, including the elements that are off screen, to the top of the first visible item. And no, they would all return different values. |
From the name what I understod is :- a) b) c) Please correct me where I am wrong in this. Thanks |
Assuming that you haven't scrolled down any the values would be:
|
Actually that would return those values regardless of scroll. |
So |
Why is this 2x for getDepthForItem(int index) |
As I have all my items uniform and height of all items is same. So |
getDepthForItem(int index) returns the depth of the item provided. Because item at index 7 is in the third row, it had two rows above it and therefore is 2 rows down from the top, where a row is x pixles tall. Suppose I gave item 0, the depth would be zero. If I gave item 3, that would be at depth x, since item 3 is in the second row. |
ok got it. |
So here it wants the item at the given progress. So if I give .5, I want the index halfway down the list (this means the list of items off screen). Si if there are 100 items which can be presented in the list, assuming they all have the same height, .5 should return item 50. .25 should return item 25, etc. |
Sorry, I should have said: this means the list of items on and off screen. |
So if there are 153 items and in a row there are three items then with progress of 0.5 I should return 76 . Am I right? |
Yes. |
Ok, Thanks a lot for help. Will try this in my project |
Developer , I really liked your MaterialScrollBar library. Only issue I have is using this in StaggeredGridLayout. I am developing a gallery application and in that I use RecyclerView layout manager StaggeredGridLayout.
I Forked your library and tried changing ScrollingUtilities.java file, and was able to use the scrollbar but Scrollbar height and scroll computation is not correctly in sync.
Please help me as to how can I incorporate this library with my project.
Thanks
The text was updated successfully, but these errors were encountered: