Rohit Ghatol wrote: > Hi All, > We plan to create an application which has a view, where we have a > Spinning Wheel of Fortune. Now there are many ways to do so > > 1. Use Android Animation > 2. Use Canvas > 3. User SurfaceView > > My requirements are as follows > 1. The wheel starts spinning slowly > 2. Spins for say 10-20 times > 3. Slows down spinning at the end > > How do I accomplish this, especially with the slow start, becomes > faster , 10-20 number of rotates and then slows down and stops? > > Android Animation is no use here, since the acceleration interpolator > can not start slow, speed up and then slow down when we use > repeatCount.
Of course it can be used: instead of using repeatCount just create your custom animation that extends Animation class > > Now that more or less leaves us with Updating the canvas by calling > view.invalidate() or use SurfaceView. I am more interested in how do > we control the animation timing (even if we do it by hand) in code. > Most examples on the net are about fixed FPS, how do we do things when > spinning varies. > > Cheers > Rohit -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

