-
-
Notifications
You must be signed in to change notification settings - Fork 254
Path Morphing - ArrayIndexOutOfBoundsException #52
Comments
These are the vector paths in the sample application:
I have tried formatting my paths to match this style by removing commas and adding spaces between every numeric and alpha value but I am still receiving the same exception. |
I have also tried updating the animation call to:
This has caused the exception to not be thrown, but the animation does not show any visual changes. |
Fixed! It turns out the paths I was using were not compatible in some way. Usually paths are not compatible if they do not have the same number of commands, but in my case I am using the same svg, but the other copy is rotated 180 degrees. I followed this tutorial, which uses this tool to optimize paths for animations. I am not sure what the issue is with my original paths, but this fixes it. I hope this helps someone else! |
Hi Seth, |
I am trying to accomplish a path morphing animation. My code is below (written in Kotlin).
Animation call:
RichPathView assigned vector:
String resources:
Resulting exception:
I would greatly appreciate it if someone could help me. I have tried using the code in the vector paths in the animals example in the sample application, but I can't figure out the difference that is causing this exception.
One difference I have noticed is the size of the vector paths are different sizes. The vector paths in the animals example are ~9000 character whereas the paths I am using are ~4000 characters.
Thank you,
-Seth
The text was updated successfully, but these errors were encountered: