-
Notifications
You must be signed in to change notification settings - Fork 436
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
Does not play well if KenBurnsView size is changing #52
Comments
So the problem is that the method onSizeChanged(int w, int h, int oldw, int oldh) is invoking the method reset() which in turn starts a new transition. This means, during an animation, a whole bunch of new transitions are fired. I think its better if OnSizeChanged just invokes updateViewport(width, height); with the new values. It works much better. |
Here is how I changed it, maybe there is a better way?
|
Turns out scaling the viewport can result in the aspect ratio not matching which in turn results in a random transition being selected. This does not look good because there is a "jump" rather than a smooth transition back to the correct aspect ratio. The modified code for this follows:
|
I was playing with this but found when the KenBurnsView size is being animated (I'm actually animating the weight of other views which is causing the KenBurnsView to resize) it goes kind of crazy. It seems the drawing does not take into account the fact that the KenBurnsView size has changed between frames :-(
The text was updated successfully, but these errors were encountered: