I have a 21x21 pixel image that I would like to animate about the center of the image.
I would think that this would be correct: new RotateAnimation(0f, 360f, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f); Since that appears to say "set the pivot point to be 50% in from my edges". However, that definitely does not rotate about the image center. It's not quite clear *what* it's rotating around. If I hard-wire in some absolute dimensions, I get close: new RotateAnimation(0f, 359f, 10, 20); Why the Y value works right with 20 and not 10, I have no idea, but this almost rotates the image about the center, with a slight oscillation effect. So...where am I going wrong? Thanks in advance! -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---