geftimov / android-pathview

Android view with both path from constructed path or from svg.
Apache License 2.0
2.91k stars 513 forks source link

When I use getSequentialPathAnimator (), draw a lot of extra lines #28

Closed MartinHY closed 7 years ago

MartinHY commented 8 years ago

image Like the one shown above ,When I use the code below, it happens.

     pathView.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
//                pathView.getPathAnimator().
                pathView.getSequentialPathAnimator().
                        delay(100).
                        duration(5000).
                        interpolator(new AccelerateDecelerateInterpolator()).
                        start();
geftimov commented 8 years ago

This looks like a bug. Can I have the svg?

MartinHY commented 8 years ago

it`s in your sample https://github.com/geftimov/android-pathview/blob/master/sample/src/main/res/raw/flag_usa.svg

geftimov commented 8 years ago

Ok thanks will see what can I do.

MartinHY commented 8 years ago

thx

MartinHY commented 8 years ago

OMG, I know why is the result of this, because when I read your code and modify your code in SvgUtils: image

very sorry ╥﹏╥...

geftimov commented 8 years ago

So you mean this is probably the fix for the bug?

MartinHY commented 8 years ago

yes, in your code it`s prove to be true.

i`m so sorry,i should not to modify it.

MartinHY commented 8 years ago

I removed the parallel animation and modified the fill animation .Now the animation is like that: woman My link : https://github.com/MartinBZDQSM/PathDraw

geftimov commented 8 years ago

I go through the library and the blog. I am really impressed, nice job.