Open leapfrog-santosh opened 9 years ago
Hi. That part of animation is not easy as this whole thing is one view. It is maybe easier to line up an ImageView over the PPV and then animate the ImageView separately in the progressListener. Hope this give you a good hint, if not ask away :).
@FilipPudak : Thanks for replying back. For animating the image view, I need to draw bitmap just like you have drawn arc on onDraw()
method. Meaning, just like arc is drawn, I need to draw bitmap. Am I going the right way or is there any easy way to animate the bitmap. Thanks again. And I just implemented animating the stroke also. It is not so full proof, but I would like to share it with you. Should I make a pull request of it as I feel there may be reason to animate stroke as well.
If you look @ http://developer.android.com/reference/android/graphics/Canvas.html you can see the drawBitmap method. I have real idea how to handle it with bitmaps. Most animation information seems to be about drawables and views. With drawable though I figure you can make a scale animation if you play with it's rect and then use a handler to animate it. Pull requests are always welcome, just do it and I'll take a look/comment when I have some time.
@FilipPudak : Thanks for the info. I don't have so much idea of using bitmap animation. Still I am not being able to proceed in your direction. But also I will try my best using your information. I commented or created this issue with other account and I have made a pull request with this account as this is the main account which I use. See the branch for animating stroke as well. Any feedback will be greatly appreciated.
Thanks a lot for this awesome library. Is there anyway we can animate the
ppvImage
just like we animate or make progress for progress fill color. Right now the image is drawn directly. Any hint would be great. Lastly great work