Michael Lam wrote: > hi, > > i am trying to do this: > > 1) user long touches the screen, > 2) a circle/ball pops up (centered around the user's finger) and grows > in size as long as the user is touching the screen > 3) once the user lets go of the finger, the ball (now in its final > size) will bounce around. > > i think i have the bouncing around figure out from the > DivideAndConquer example, but i am not sure how to animate the ball's > growth. i looked at various view flipper examples such as this: > > http://www.inter-fuser.com/2009/08/android-animations-3d-flip.html > > but it seems like view flipper is best for swapping two static > pictures. i wasn't able to find a good view animator example other > than the flippers. also, i would prefer to use images as opposed to > just a circle. can someone point me in the right direction?
Use a ScaleAnimation on an ImageView, perhaps: http://developer.android.com/reference/android/view/animation/ScaleAnimation.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in NYC: 30 April-2 May 2010: http://guruloft.com -- 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 To unsubscribe, reply using "remove me" as the subject.

