-
Notifications
You must be signed in to change notification settings - Fork 820
-
Notifications
You must be signed in to change notification settings - Fork 820
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
Not smooth animation for a list view with items of different height #21
Comments
True... I've fixed this in my project. Will try to contribute changes here this evening. |
Sorry, but I still have not smooth animation when showing/hiding FAB on scrolling a list view of items with diferent height. I think this issue should be reopened. |
@alexey-rabets have you updated the library dependency to the version 1.0.4? I tested it on the list with different height items and an animation was smooth. |
Yes, I've updated to 1.0.4. I can create and share a demo which reproduces the issue. |
Please, it will help. |
I have modified your sample to demonstrate the issue: |
Thanks, I'll check. |
Hi, the current approach is (fully) broken for lists with items of different heights.
The downside is, raising the scroll events purely based on the minimum significant scroll value is not possible this way. But I honestly think that's worth the gain in reliability. I couldn't finish that approach yesterday evening but i may find some time this weekend. |
here's my version of a (as far as I've tested) reliable ScrollDirectionDetector which I am using with my slightly customized FloatingActionButton: |
@sreichholf Thanks! Could you send a pull request? I'll review and merge it. |
@alexey-rabets The issue seems finally to be resolved. I'll push an update to the Maven Central soon. For now could you check with the latest code base from the repo if the FAB works now with list with different items height? |
Yes, it works now. Thanks! |
Fine, I'll close the issue. |
If items of a list view have different height, then animation to show/hide FAB when scrolling isn't smooth sometimes. I think it is due to assumption in getListViewScrollY method that all items have the same height.
The text was updated successfully, but these errors were encountered: