[android-developers] Re: How to do an animated pie chart?

2009-01-07 Thread Jonathan Parker
Maybe when android support animated gifs that would be easier (assuming there is an animated gif generator library): http://groups.google.com/group/android-beginners/browse_thread/thread/edfc219135fe0909?pli=1 I wonder if Google Charts API will support animated gifs in the future. That would be a

[android-developers] Re: How to do an animated pie chart?

2009-01-05 Thread melody
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

[android-developers] Re: How to do an animated pie chart?

2009-01-05 Thread Dianne Hackborn
You shouldn't need to use a worker thread. If you want to run up to the screen refresh rate, just do invalidate() in onDraw(). Otherwise, you can use Handler in the main thread to post delayed messages to achieve whatever update rate you want. On Mon, Jan 5, 2009 at 4:04 PM, melody