Mark Murphy napisaƂ(a):
> 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.

i tested RotateAnimation with params you provided and it works
perfectly (i rotated LinearLayout). What is bad behaviour at your
side? does it rotate at all? or rotates but with unknown pivot?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to