skink wrote:
> 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?

Rotate with unknown pivot. If you're seeing a rotation around the center
point of the View with the parameters I gave you, then obviously there's
something a wee bit off with my View.

Hmmm...I have paddingRight and paddingTop values in the layout for this
ImageView. I wonder if the animation is taking those into account. That
would explain why 10, 20 would be close to the correct values when I
hard-wired them in -- the 20 would be the 10px paddingTop plus roughly
half of the image itself.

I'll give that a shot in the morning and I'll try to remember to post
back with my results.

BTW, per your other message, your sample code is pretty much what I'm
doing. I'm getting the ImageView via findViewById() and setting a 1000ms
duration. One slight difference in my current code is that the
RotateAnimation is going in an AnimationSet, along with an
AlphaAnimation. However, I was getting similar strange pivot points when
the RotateAnimation was standalone, so I doubt the AnimationSet is the
culprit.

Thanks for the input!

-- 
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to