-
Notifications
You must be signed in to change notification settings - Fork 369
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
Jumping feel while sliding slowly #23
Comments
@iamshajeer |
Thanks for your concern. Issue is when you try to change(scroll) one recyclerview item to another the second item comes suddenly. Which is not smooth. May be I can create a gif and post very soon. Also is there any way to change the bottom position of the next and previous items ? I couldn't find anything. Please clarify. |
@iamshajeer About not smooth animation.. not sure how you want it to look like. |
@iamshajeer any update here? can you give me an example of such animation? |
@mig35, I think he's talking about something like this, where the items should be going smoothly, similar to just a standard horizontal layout manager, but with all the utility methods that you guys provide (which is what I'm trying to figure out right now). |
Hi @nachtien |
Hey! to this one: I use horizontal carousel and it's make the animation looks better and child views not overlapping centered view |
In addition to my previous answer you can change this line in CenterScrollListener: to this one: This one will slow down the animation on centered view and it will look better |
Hi, |
Hi, the same here. Sometimes it scrolls smooth, sometime it "jumps" from one recycler item to another. |
Hi, same here. I'm dealing the same issue with jumps. When scrolling second element to the centre position and sizes of the centre and the second elements becomes the same, second element just jumps to the centre position. |
Hi everybody, |
@red742652 Don't do that! It will cause problem when add, remove items! |
@mig35 @iamshajeer @nachtien @roman-inmanage @AnkitDApalya any update on this issue I am facing same |
where is the complete code for removing that jumpy jerk, kindly i need it. |
For all of those who are still interested in a solution. First of all, there is no need to modify the source code! As @mig35 stated:
Absolutely correct! What was causing the jerking/jumping movement is the scale calculation. I created an implementation of In my case, it was calculated as simple as: It works this way: the centre item is scaled 1:1 items to left and right of it will be 17% smaller; the next item to the left and right will be 34% smaller and so on. Here is the full implementation in Kotlin of PostLayoutListener.
|
Great thing @JeneaVranceanu . |
Hi,
When I scroll from one card to another very slowly it jumps from on to another. the scrolling is not smooth, I think you are bringing the next card immediately. can you make it pixel by pixel ? also is there any way that I can adjust the position of cards ?
The text was updated successfully, but these errors were encountered: