I wasn't able to do this with the standard animation classes, but I did manage to do it.
First I used the use of the ArcShape class to generate the slice of the pie. In order to acheive the animation, I set up a worker thread to repeatedly change the sweepAngle and call invalidate() on the containing view at an arbitrary refresh rate (50ms seems to look smooth). It seems to work fine, but again, if anyone knows of a better way to do this, I'm all ears. melody wrote: > Hi, > > I tried asking this in the beginners forum but didn't get any > responses so I thought I'd try here. > > I was wondering if someone could give me some guidance on how to do an > animated pie chart. My initial idea is to have a circle background > image as my pie, and then create a "slice" of the pie and animate the > scale and rotation of the slice. However I'm not really sure how to > do that. > > Or if there is a completely different but better way to do this, that > would be great to know too. > > Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---